Add a mir validation check to prevent OpaqueCast after analysis passes finish
This commit is contained in:
@@ -139,6 +139,7 @@ pub enum RuntimePhase {
|
||||
/// * [`TerminatorKind::Yield`]
|
||||
/// * [`TerminatorKind::GeneratorDrop`]
|
||||
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
|
||||
/// * [`PlaceElem::OpaqueCast`]
|
||||
///
|
||||
/// And the following variants are allowed:
|
||||
/// * [`StatementKind::Retag`]
|
||||
|
||||
Reference in New Issue
Block a user