diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-11 19:33:52 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-14 10:45:37 -0700 |
| commit | ade807c6dcf6dc4454732c5e914ca06ebb429773 (patch) | |
| tree | 64606dac9c81ec4567e19f503d4d82e249dbf40a /src/libcore | |
| parent | f20b1293fcce4e120bd4a57226e0817271cd672c (diff) | |
| download | rust-ade807c6dcf6dc4454732c5e914ca06ebb429773.tar.gz rust-ade807c6dcf6dc4454732c5e914ca06ebb429773.zip | |
rustc: Obsolete the `@` syntax entirely
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index bb11ec5502e..32c47d36bed 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -2345,6 +2345,7 @@ mod tests { use num; use realstd::vec::Vec; use realstd::slice::Vector; + use realstd::gc::GC; use cmp; use realstd::owned::Box; @@ -2835,7 +2836,8 @@ mod tests { #[test] #[should_fail] fn test_rposition_fail() { - let v = [(box 0, @0), (box 0, @0), (box 0, @0), (box 0, @0)]; + let v = [(box 0, box(GC) 0), (box 0, box(GC) 0), + (box 0, box(GC) 0), (box 0, box(GC) 0)]; let mut i = 0; v.iter().rposition(|_elt| { if i == 2 { |
