Skip to content

Commit 5568ed3

Browse files
committed
Remove superfluous traversable impl for mir::Local
1 parent 7a85ddb commit 5568ed3

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_boring)] 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
@@ -421,7 +421,6 @@ TrivialLiftImpls! {
421421
// provide any traversal implementations, we need to provide a traversal
422422
// implementation (only for TyCtxt<'_> interners).
423423
TrivialTypeTraversalImpls! {
424-
crate::mir::Local,
425424
crate::ty::BoundConstness,
426425
::rustc_span::Span,
427426
::rustc_errors::ErrorGuaranteed,

0 commit comments

Comments
 (0)