diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-06-05 14:17:49 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-07-22 15:34:00 +0200 |
| commit | 75da81e78231a6fb5d90b3918bebe867249eb14c (patch) | |
| tree | cdd52f03da43a026b9825e8137c961bb9354a493 /src/libcore | |
| parent | b325e4f28e0735bb951bdf9f1db1206bd3ee715b (diff) | |
| download | rust-75da81e78231a6fb5d90b3918bebe867249eb14c.tar.gz rust-75da81e78231a6fb5d90b3918bebe867249eb14c.zip | |
Change signature for `move_val_init` intrinsic to take `*mut T` for `dest`.
rebase update to typeck/check/mod.rs
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/intrinsics.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index ef022179772..a1d7867431b 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -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. |
