diff options
| author | bors <bors@rust-lang.org> | 2013-03-13 14:57:55 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-13 14:57:55 -0700 |
| commit | ab5472a7244896df20ceb7a12d9d30afc838f004 (patch) | |
| tree | 1ca658c64f9200eb015762c4d4557f5172cf4837 /src/libstd/priority_queue.rs | |
| parent | 67b0f3d5b2d88ea9b5c0a667fc3dbdf794e5c054 (diff) | |
| parent | 852619d5d7ef7e9b9c5e57102e244c575f0c6a8f (diff) | |
| download | rust-ab5472a7244896df20ceb7a12d9d30afc838f004.tar.gz rust-ab5472a7244896df20ceb7a12d9d30afc838f004.zip | |
auto merge of #5307 : nikomatsakis/rust/remove-by-val, r=nikomatsakis
This is done in two steps: First, we make foreign functions not consider modes at all. This is because previously ++ mode was the only way to pass structs to foreign functions and so forth. We also add a lint mode warning if you use `&&` mode in a foreign function, since the semantics of that change (it used to pass a pointer to the C function, now it doesn't). Then, we remove by value and make it equivalent to `+` mode. At the same time, we stop parsing `-` mode and convert all uses of it to `+` mode (it was already being parsed to `+` mode anyhow). This obsoletes pull request #5298. r? @brson
Diffstat (limited to 'src/libstd/priority_queue.rs')
| -rw-r--r-- | src/libstd/priority_queue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index 31f29ce23f2..99d19c4839c 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -19,7 +19,7 @@ use core::vec; #[abi = "rust-intrinsic"] extern "C" mod rusti { - fn move_val_init<T>(dst: &mut T, -src: T); + fn move_val_init<T>(dst: &mut T, +src: T); fn init<T>() -> T; } |
