Skip to content

Commit 2463fef

Browse files
committed
Remove traversable impl for mir::Local
1 parent 95b0952 commit 2463fef

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ pub enum ProjectionElem<V, T> {
10331033
///
10341034
/// The `x[i]` is turned into a `Deref` followed by an `Index`, not just an `Index`. The same
10351035
/// thing is true of the `ConstantIndex` and `Subslice` projections below.
1036-
Index(V),
1036+
Index(#[skip_traversal(because_trivial)] V),
10371037

10381038
/// These indices are generated by slice patterns. Easiest to explain
10391039
/// by example:

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ TrivialLiftImpls! {
420420
// provide any traversal implementations, we need to provide a traversal
421421
// implementation (only for TyCtxt<'_> interners).
422422
TrivialTypeTraversalImpls! {
423-
crate::mir::Local,
424423
crate::ty::BoundConstness,
425424
::rustc_span::Span,
426425
::rustc_errors::ErrorGuaranteed,

0 commit comments

Comments
 (0)