diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-02 12:14:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-02 12:14:15 +0200 |
| commit | 51dc78e4cce65de98ead91799d05372ce25cba2a (patch) | |
| tree | 06b32ff2b69cf80120119af75618fceb0039fc5a /src/librustc_codegen_ssa | |
| parent | 6b951c2950c728e9c3af8e378a3da5c8f1ec9293 (diff) | |
| parent | 00d32e8687a91f016580e0dee22cec0531ed028b (diff) | |
| download | rust-51dc78e4cce65de98ead91799d05372ce25cba2a.tar.gz rust-51dc78e4cce65de98ead91799d05372ce25cba2a.zip | |
Rollup merge of #62969 - saleemjaffer:declutter_interperror, r=RalfJung
Changing the structure of `mir::interpret::InterpError` Implements [this](https://github.com/rust-rfcs/const-eval/issues/4#issuecomment-514559965)
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/block.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs index 18611c3e167..006ebcbdec6 100644 --- a/src/librustc_codegen_ssa/mir/block.rs +++ b/src/librustc_codegen_ssa/mir/block.rs @@ -2,7 +2,7 @@ use rustc::middle::lang_items; use rustc::ty::{self, Ty, TypeFoldable, Instance}; use rustc::ty::layout::{self, LayoutOf, HasTyCtxt, FnTypeExt}; use rustc::mir::{self, Place, PlaceBase, Static, StaticKind}; -use rustc::mir::interpret::PanicMessage; +use rustc::mir::interpret::PanicInfo; use rustc_target::abi::call::{ArgType, FnType, PassMode, IgnoreMode}; use rustc_target::spec::abi::Abi; use crate::base; @@ -368,7 +368,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { // checked operation, just a comparison with the minimum // value, so we have to check for the assert message. if !bx.check_overflow() { - if let PanicMessage::OverflowNeg = *msg { + if let PanicInfo::OverflowNeg = *msg { const_cond = Some(expected); } } @@ -403,7 +403,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { // Put together the arguments to the panic entry point. let (lang_item, args) = match msg { - PanicMessage::BoundsCheck { ref len, ref index } => { + PanicInfo::BoundsCheck { ref len, ref index } => { let len = self.codegen_operand(&mut bx, len).immediate(); let index = self.codegen_operand(&mut bx, index).immediate(); |
