|  | 
|  | 1 | +use super::{error_to_const_error, CompileTimeEvalContext, CompileTimeInterpreter}; | 
| 1 | 2 | use crate::interpret::eval_nullary_intrinsic; | 
|  | 3 | +use crate::interpret::{ | 
|  | 4 | +    intern_const_alloc_recursive, Allocation, ConstValue, GlobalId, ImmTy, Immediate, InterpCx, | 
|  | 5 | +    InterpResult, MPlaceTy, MemoryKind, OpTy, RawConst, RefTracking, Scalar, ScalarMaybeUndef, | 
|  | 6 | +    StackPopCleanup, | 
|  | 7 | +}; | 
| 2 | 8 | use rustc::hir::def::DefKind; | 
| 3 | 9 | use rustc::mir; | 
| 4 | 10 | use rustc::mir::interpret::{ConstEvalErr, ErrorHandled}; | 
| 5 | 11 | use rustc::traits::Reveal; | 
| 6 |  | -use rustc::ty::{self, layout::LayoutOf, subst::Subst, TyCtxt}; | 
| 7 |  | -use rustc::ty::{self, TyCtxt}; | 
| 8 |  | - | 
| 9 |  | -use crate::interpret::{ | 
| 10 |  | -    intern_const_alloc_recursive, ConstValue, GlobalId, InterpCx, InterpResult, MPlaceTy, | 
| 11 |  | -    MemoryKind, RawConst, RefTracking, StackPopCleanup, | 
| 12 |  | -}; | 
| 13 |  | - | 
| 14 |  | -use super::{ | 
| 15 |  | -    error_to_const_error, mk_eval_cx, op_to_const, CompileTimeEvalContext, CompileTimeInterpreter, | 
| 16 |  | -}; | 
|  | 12 | +use rustc::ty::{self, layout, layout::LayoutOf, subst::Subst, TyCtxt}; | 
|  | 13 | +use std::convert::TryInto; | 
|  | 14 | +use syntax::source_map::Span; | 
| 17 | 15 | 
 | 
| 18 | 16 | pub fn note_on_undefined_behavior_error() -> &'static str { | 
| 19 | 17 |     "The rules on what exactly is undefined behavior aren't clear, \ | 
|  | 
0 commit comments