-6cfa773583bb5123e630668f5bfe466716225546
+1c858ba5bf7bd06c1a970efbf77053c8380b3151
use log::info;
use rustc_hir::def_id::DefId;
-use rustc_middle::ty::{self, layout::LayoutCx, TyCtxt};
-use rustc_target::abi::LayoutOf;
+use rustc_middle::ty::{
+ self,
+ layout::{LayoutCx, LayoutOf},
+ TyCtxt,
+};
use rustc_target::spec::abi::Abi;
use crate::*;
use rustc_hir::def_id::{DefId, CRATE_DEF_INDEX};
use rustc_middle::mir;
-use rustc_middle::ty::{self, layout::TyAndLayout, List, TyCtxt};
+use rustc_middle::ty::{
+ self,
+ layout::{LayoutOf, TyAndLayout},
+ List, TyCtxt,
+};
use rustc_span::Symbol;
-use rustc_target::abi::{Align, FieldsShape, LayoutOf, Size, Variants};
+use rustc_target::abi::{Align, FieldsShape, Size, Variants};
use rustc_target::spec::abi::Abi;
use rand::RngCore;
mir,
ty::{
self,
- layout::{LayoutCx, LayoutError, TyAndLayout},
+ layout::{LayoutCx, LayoutError, LayoutOf, TyAndLayout},
Instance, TyCtxt,
},
};
use rustc_span::def_id::DefId;
use rustc_span::symbol::{sym, Symbol};
-use rustc_target::abi::{LayoutOf, Size};
+use rustc_target::abi::Size;
use rustc_target::spec::abi::Abi;
use crate::*;
-use crate::rustc_target::abi::LayoutOf as _;
use crate::*;
use rustc_ast::ast::Mutability;
+use rustc_middle::ty::layout::LayoutOf as _;
use rustc_middle::ty::{self, TypeAndMut};
use rustc_span::{BytePos, Symbol};
use rustc_target::{abi::Size, spec::abi::Abi};
use std::io::ErrorKind;
use rustc_data_structures::fx::FxHashMap;
+use rustc_middle::ty::layout::LayoutOf;
use rustc_mir::interpret::Pointer;
-use rustc_target::abi::{LayoutOf, Size};
+use rustc_target::abi::Size;
use crate::*;
use log::trace;
use rustc_apfloat::{Float, Round};
-use rustc_middle::ty::layout::IntegerExt;
+use rustc_middle::ty::layout::{IntegerExt, LayoutOf};
use rustc_middle::{mir, mir::BinOp, ty, ty::FloatTy};
-use rustc_target::abi::{Align, Integer, LayoutOf};
+use rustc_target::abi::{Align, Integer};
use crate::*;
use helpers::check_arg_count;
#[cfg(windows)]
use std::os::windows::ffi::{OsStrExt, OsStringExt};
-use rustc_target::abi::{Align, LayoutOf, Size};
+use rustc_middle::ty::layout::LayoutOf;
+use rustc_target::abi::{Align, Size};
use crate::*;
use log::trace;
use rustc_middle::mir;
+use rustc_middle::ty::layout::LayoutOf;
use rustc_span::Symbol;
-use rustc_target::abi::{Align, LayoutOf, Size};
+use rustc_target::abi::{Align, Size};
use rustc_target::spec::abi::Abi;
use crate::*;
use log::trace;
use rustc_data_structures::fx::FxHashMap;
-use rustc_middle::ty;
-use rustc_target::abi::{Align, LayoutOf, Size};
+use rustc_middle::ty::{self, layout::LayoutOf};
+use rustc_target::abi::{Align, Size};
use crate::*;
use helpers::{check_arg_count, immty_from_int_checked, immty_from_uint_checked};
use std::convert::TryInto;
use crate::*;
-use rustc_target::abi::LayoutOf;
+use rustc_middle::ty::layout::LayoutOf;
use rustc_target::spec::abi::Abi;
impl<'mir, 'tcx> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mir, 'tcx> {}
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_hir::Mutability;
use rustc_middle::mir::RetagKind;
-use rustc_middle::ty;
-use rustc_target::abi::{LayoutOf, Size};
+use rustc_middle::ty::{self, layout::LayoutOf};
+use rustc_target::abi::Size;
use crate::*;