Add unreachable cases to Terminator
This commit is contained in:
parent
f8d8ffa2eb
commit
5749bd08e8
@ -330,10 +330,7 @@ fn rustc_terminator_to_terminator(
|
|||||||
target: target.as_usize(),
|
target: target.as_usize(),
|
||||||
unwind: rustc_unwind_to_unwind(unwind),
|
unwind: rustc_unwind_to_unwind(unwind),
|
||||||
},
|
},
|
||||||
Yield { .. } => todo!(),
|
|
||||||
GeneratorDrop => Terminator::GeneratorDrop,
|
|
||||||
FalseEdge { .. } => todo!(),
|
|
||||||
FalseUnwind { .. } => todo!(),
|
|
||||||
InlineAsm { .. } => todo!(),
|
InlineAsm { .. } => todo!(),
|
||||||
|
Yield { .. } | GeneratorDrop | FalseEdge { .. } | FalseUnwind { .. } => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user