Skip to content

Commit f008a7d

Browse files
authored
Unrolled build for rust-lang#131194
Rollup merge of rust-lang#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
2 parents 495f75a + 8918a9d commit f008a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/stable_mir/src/mir/visit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ pub trait MirVisitor {
7676
self.super_place(place, ptx, location)
7777
}
7878

79-
fn visit_projection_elem<'a>(
79+
fn visit_projection_elem(
8080
&mut self,
81-
place_ref: PlaceRef<'a>,
81+
place_ref: PlaceRef<'_>,
8282
elem: &ProjectionElem,
8383
ptx: PlaceContext,
8484
location: Location,

0 commit comments

Comments
 (0)