1
Fork 0

Add a mir validation check to prevent OpaqueCast after analysis passes finish

This commit is contained in:
Oli Scherer 2023-09-27 11:35:09 +00:00
parent 2d4201f7c6
commit 0031cf7c7e
2 changed files with 9 additions and 0 deletions

View file

@ -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`]