Make <*const/mut T>::offset_from `const fn`
This reenables offset_of cc @mjbshaw after https://github.com/rust-lang/rust/pull/63075 broke it
use rustc_codegen_ssa::common::{IntPredicate, TypeKind};
use rustc::hir;
use syntax::ast::{self, FloatTy};
+ use rustc_target::abi::HasDataLayout;
+use rustc_codegen_ssa::common::span_invalid_monomorphization_error;
use rustc_codegen_ssa::traits::*;
-use rustc::session::Session;
use syntax_pos::Span;
use std::cmp::Ordering;
use rustc::mir::interpret::{InterpResult, Scalar, GlobalId, ConstValue};
use super::{
- Machine, PlaceTy, OpTy, InterpCx,
+ Machine, PlaceTy, OpTy, InterpCx, ImmTy,
};
+mod caller_location;
mod type_name;
fn numeric_intrinsic<'tcx, Tag>(