]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #66927 - RalfJung:engines-dont-panic, r=oli-obk
authorbors <bors@rust-lang.org>
Sat, 7 Dec 2019 14:46:30 +0000 (14:46 +0000)
committerbors <bors@rust-lang.org>
Sat, 7 Dec 2019 14:46:30 +0000 (14:46 +0000)
commit5c5c8eb864e56ce905742b8e97df5506bba6aeef
tree135e46e08b4e56b961a23d223fce2a2f5f04c4f2
parent0a953cd9aa8b4c8b821bc672a4408900758e7e63
parent15f159addefd8fea7564ba7617c8af78582b7816
Auto merge of #66927 - RalfJung:engines-dont-panic, r=oli-obk

Miri core engine: use throw_ub instead of throw_panic

See https://github.com/rust-lang/rust/issues/66902 for context: panicking is not really an "interpreter error", but just part of a normal Rust execution. This is a first step towards removing the `InterpError::Panic` variant: the core Miri engine does not use it any more.

ConstProp and ConstEval still use it, though. This will be addressed in future PRs.

From what I can tell, all the error messages this removes are actually duplicates.

r? @oli-obk @wesleywiser
src/librustc/mir/interpret/error.rs
src/librustc_mir/interpret/place.rs