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/test/debuginfo/borrowed-managed-basic.rs | |
| 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/test/debuginfo/borrowed-managed-basic.rs')
| -rw-r--r-- | src/test/debuginfo/borrowed-managed-basic.rs | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/test/debuginfo/borrowed-managed-basic.rs b/src/test/debuginfo/borrowed-managed-basic.rs index 85f32585905..0f81e530fdd 100644 --- a/src/test/debuginfo/borrowed-managed-basic.rs +++ b/src/test/debuginfo/borrowed-managed-basic.rs @@ -63,47 +63,49 @@ #![allow(unused_variable)] +use std::gc::{Gc, GC}; + fn main() { - let bool_box: @bool = @true; + let bool_box: Gc<bool> = box(GC) true; let bool_ref: &bool = bool_box; - let int_box: @int = @-1; + let int_box: Gc<int> = box(GC) -1; let int_ref: &int = int_box; - let char_box: @char = @'a'; + let char_box: Gc<char> = box(GC) 'a'; let char_ref: &char = char_box; - let i8_box: @i8 = @68; + let i8_box: Gc<i8> = box(GC) 68; let i8_ref: &i8 = i8_box; - let i16_box: @i16 = @-16; + let i16_box: Gc<i16> = box(GC) -16; let i16_ref: &i16 = i16_box; - let i32_box: @i32 = @-32; + let i32_box: Gc<i32> = box(GC) -32; let i32_ref: &i32 = i32_box; - let i64_box: @i64 = @-64; + let i64_box: Gc<i64> = box(GC) -64; let i64_ref: &i64 = i64_box; - let uint_box: @uint = @1; + let uint_box: Gc<uint> = box(GC) 1; let uint_ref: &uint = uint_box; - let u8_box: @u8 = @100; + let u8_box: Gc<u8> = box(GC) 100; let u8_ref: &u8 = u8_box; - let u16_box: @u16 = @16; + let u16_box: Gc<u16> = box(GC) 16; let u16_ref: &u16 = u16_box; - let u32_box: @u32 = @32; + let u32_box: Gc<u32> = box(GC) 32; let u32_ref: &u32 = u32_box; - let u64_box: @u64 = @64; + let u64_box: Gc<u64> = box(GC) 64; let u64_ref: &u64 = u64_box; - let f32_box: @f32 = @2.5; + let f32_box: Gc<f32> = box(GC) 2.5; let f32_ref: &f32 = f32_box; - let f64_box: @f64 = @3.5; + let f64_box: Gc<f64> = box(GC) 3.5; let f64_ref: &f64 = f64_box; zzz(); } |
