Skip to content

Commit 8449c5a

Browse files
committed
Fix rebase
1 parent 9a9b747 commit 8449c5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustc/hir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl Generics {
550550

551551
pub fn get_named(&self, name: &InternedString) -> Option<&GenericParam> {
552552
for param in &self.params {
553-
if *name == param.name.name().as_interned_str() {
553+
if *name == param.name.ident().as_interned_str() {
554554
return Some(param);
555555
}
556556
}

src/test/ui/impl-trait/static-return-lifetime-infered.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ LL | self.x.iter().map(|a| a.0)
3030
| |
3131
| ...but this borrow...
3232
|
33-
note: ...can't outlive the lifetime 'a as defined on the method body at 20:5
34-
--> $DIR/static-return-lifetime-infered.rs:20:5
33+
note: ...can't outlive the lifetime 'a as defined on the method body at 20:20
34+
--> $DIR/static-return-lifetime-infered.rs:20:20
3535
|
3636
LL | fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> {
37-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38-
help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime 'a as defined on the method body at 20:5
37+
| ^^
38+
help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime 'a as defined on the method body at 20:20
3939
|
4040
LL | fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> + 'a {
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)