mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
rustup
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
5fd2f06e99a985dd896684cb2c9f8c7090eca1ab
|
||||
d3cba254e464303a6495942f3a831c2bbd7f1768
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
},
|
||||
};
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::def_id::DefId;
|
||||
use rustc_target::abi::{LayoutOf, Size};
|
||||
|
||||
use crate::*;
|
||||
@@ -416,10 +417,18 @@ fn box_alloc(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn thread_local_alloc_id(
|
||||
ecx: &mut InterpCx<'mir, 'tcx, Self>,
|
||||
def_id: DefId,
|
||||
) -> InterpResult<'tcx, AllocId> {
|
||||
ecx.get_or_create_thread_local_alloc_id(def_id)
|
||||
}
|
||||
|
||||
fn adjust_global_const(
|
||||
ecx: &InterpCx<'mir, 'tcx, Self>,
|
||||
mut val: mir::interpret::ConstValue<'tcx>,
|
||||
) -> InterpResult<'tcx, mir::interpret::ConstValue<'tcx>> {
|
||||
// FIXME: Remove this, do The Right Thing in `thread_local_alloc_id` instead.
|
||||
ecx.remap_thread_local_alloc_ids(&mut val)?;
|
||||
Ok(val)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user