diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-04 19:19:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 19:19:25 -0700 |
| commit | bc2f732870602324ecce17aad19c9fc2a047f917 (patch) | |
| tree | 59f9a1458c204ed0d884440e663030947fd67e37 | |
| parent | 5bad4e9cae7fe6ea0543d1a98ba59cfe5a17e513 (diff) | |
| parent | 8918a9d265c38945fe442a8fcec71995f6e52b5a (diff) | |
| download | rust-bc2f732870602324ecce17aad19c9fc2a047f917.tar.gz rust-bc2f732870602324ecce17aad19c9fc2a047f917.zip | |
Rollup merge of #131194 - practicalrs:fix_needless_lifetimes, r=celinval
Fix needless_lifetimes in stable_mir Hi, This PR fixes the following clippy warning in stable_mir ``` warning: the following explicit lifetimes could be elided: 'a --> compiler/stable_mir/src/mir/visit.rs:79:30 | 79 | fn visit_projection_elem<'a>( | ^^ 80 | &mut self, 81 | place_ref: PlaceRef<'a>, | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 79 ~ fn visit_projection_elem( 80 | &mut self, 81 ~ place_ref: PlaceRef<'_>, | ``` Best regards, Michal
| -rw-r--r-- | compiler/stable_mir/src/mir/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/stable_mir/src/mir/visit.rs b/compiler/stable_mir/src/mir/visit.rs index aeae866e9d3..e2d1ff7fdd3 100644 --- a/compiler/stable_mir/src/mir/visit.rs +++ b/compiler/stable_mir/src/mir/visit.rs @@ -76,9 +76,9 @@ pub trait MirVisitor { self.super_place(place, ptx, location) } - fn visit_projection_elem<'a>( + fn visit_projection_elem( &mut self, - place_ref: PlaceRef<'a>, + place_ref: PlaceRef<'_>, elem: &ProjectionElem, ptx: PlaceContext, location: Location, |
