We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86acdd commit de69d08Copy full SHA for de69d08
compiler/rustc_mir_dataflow/src/value_analysis.rs
@@ -260,8 +260,17 @@ pub trait ValueAnalysis<'tcx> {
260
// They would have an effect, but are not allowed in this phase.
261
bug!("encountered disallowed terminator");
262
}
263
- _ => {
264
- // The other terminators can be ignored.
+ TerminatorKind::Goto { .. }
+ | TerminatorKind::SwitchInt { .. }
265
+ | TerminatorKind::Resume
266
+ | TerminatorKind::Abort
267
+ | TerminatorKind::Return
268
+ | TerminatorKind::Unreachable
269
+ | TerminatorKind::Assert { .. }
270
+ | TerminatorKind::GeneratorDrop
271
+ | TerminatorKind::FalseEdge { .. }
272
+ | TerminatorKind::FalseUnwind { .. } => {
273
+ // These terminators have no effect on the analysis.
274
275
276
0 commit comments