Change signature for move_val_init intrinsic to take *mut T for dest.
rebase update to typeck/check/mod.rs
This commit is contained in:
@@ -184,6 +184,14 @@ extern "rust-intrinsic" {
|
||||
/// elements.
|
||||
pub fn size_of<T>() -> usize;
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
/// Moves a value to an uninitialized memory location.
|
||||
///
|
||||
/// Drop glue is not run on the destination.
|
||||
pub fn move_val_init<T>(dst: *mut T, src: T);
|
||||
|
||||
// SNAP ba0e1cd
|
||||
#[cfg(stage0)]
|
||||
/// Moves a value to an uninitialized memory location.
|
||||
///
|
||||
/// Drop glue is not run on the destination.
|
||||
|
||||
@@ -4894,9 +4894,7 @@ pub fn check_intrinsic_type(ccx: &CrateCtxt, it: &ast::ForeignItem) {
|
||||
"move_val_init" => {
|
||||
(1,
|
||||
vec!(
|
||||
tcx.mk_mut_ref(tcx.mk_region(ty::ReLateBound(ty::DebruijnIndex::new(1),
|
||||
ty::BrAnon(0))),
|
||||
param(ccx, 0)),
|
||||
tcx.mk_mut_ptr(param(ccx, 0)),
|
||||
param(ccx, 0)
|
||||
),
|
||||
tcx.mk_nil())
|
||||
|
||||
Reference in New Issue
Block a user