Update tooling
This commit is contained in:
parent
a17ccfa621
commit
dc53c8f25f
15 changed files with 137 additions and 99 deletions
|
@ -5,7 +5,6 @@ use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
|
|||
use rustc_middle::mir::interpret::{
|
||||
read_target_uint, AllocId, ConstAllocation, ConstValue, ErrorHandled, GlobalAlloc, Scalar,
|
||||
};
|
||||
use rustc_span::DUMMY_SP;
|
||||
|
||||
use cranelift_module::*;
|
||||
|
||||
|
@ -291,7 +290,7 @@ fn data_id_for_static(
|
|||
let is_mutable = if tcx.is_mutable_static(def_id) {
|
||||
true
|
||||
} else {
|
||||
!ty.is_freeze(tcx.at(DUMMY_SP), ParamEnv::reveal_all())
|
||||
!ty.is_freeze(tcx, ParamEnv::reveal_all())
|
||||
};
|
||||
let align = tcx.layout_of(ParamEnv::reveal_all().and(ty)).unwrap().align.pref.bytes();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue