File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 |
3636LL | 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 |
4040LL | fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> + 'a {
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments