Skip to content

Commit f107a50

Browse files
committed
Auto merge of rust-lang#115025 - ouz-a:ouz_testing, r=lcnr
Make subtyping explicit in MIR This adds new mir-opt that pushes new `ProjectionElem` called `ProjectionElem::Subtype(T)` to `Rvalue` of a subtyped assignment so we can unsoundness issues like rust-lang#107205 Addresses rust-lang#112651 r? `@lcnr`
2 parents 3169423 + ea4b388 commit f107a50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ fn check_place<'tcx>(tcx: TyCtxt<'tcx>, place: Place<'tcx>, span: Span, body: &B
272272
| ProjectionElem::Downcast(..)
273273
| ProjectionElem::Subslice { .. }
274274
| ProjectionElem::Deref
275+
| ProjectionElem::Subtype(_)
275276
| ProjectionElem::Index(_) => {},
276277
}
277278
}

0 commit comments

Comments
 (0)