File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ impl Generics {
550
550
551
551
pub fn get_named ( & self , name : & InternedString ) -> Option < & GenericParam > {
552
552
for param in & self . params {
553
- if * name == param. name . name ( ) . as_interned_str ( ) {
553
+ if * name == param. name . ident ( ) . as_interned_str ( ) {
554
554
return Some ( param) ;
555
555
}
556
556
}
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ LL | self.x.iter().map(|a| a.0)
30
30
| |
31
31
| ...but this borrow...
32
32
|
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
35
35
|
36
36
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
39
39
|
40
40
LL | fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> + 'a {
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments