diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-08 19:03:14 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-13 08:02:14 +1000 | 
| commit | 4497d345a8196554021f6d145b86bfc814c954d3 (patch) | |
| tree | 37e1dbda692a2adc697242abadcc0f1f539c8249 /compiler/rustc_const_eval/src/interpret/terminator.rs | |
| parent | f12e9357955c915bb5b34f5917eb016647410c71 (diff) | |
| download | rust-4497d345a8196554021f6d145b86bfc814c954d3.tar.gz rust-4497d345a8196554021f6d145b86bfc814c954d3.zip | |
Remove `extern crate rustc_middle` from `rustc_const_eval`.
This requires exporting the interpreter macros so they can be used with `use crate::interpret::*`.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/terminator.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/terminator.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs index b474003087b..b82c1857858 100644 --- a/compiler/rustc_const_eval/src/interpret/terminator.rs +++ b/compiler/rustc_const_eval/src/interpret/terminator.rs @@ -2,6 +2,7 @@ use std::borrow::Cow; use either::Either; +use rustc_middle::span_bug; use rustc_middle::{ mir, ty::{ @@ -19,8 +20,9 @@ use rustc_target::abi::{ use rustc_target::spec::abi::Abi; use super::{ - CtfeProvenance, FnVal, ImmTy, InterpCx, InterpResult, MPlaceTy, Machine, OpTy, PlaceTy, - Projectable, Provenance, Scalar, StackPopCleanup, + throw_ub, throw_ub_custom, throw_unsup_format, CtfeProvenance, FnVal, ImmTy, InterpCx, + InterpResult, MPlaceTy, Machine, OpTy, PlaceTy, Projectable, Provenance, Scalar, + StackPopCleanup, }; use crate::fluent_generated as fluent; | 
