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]
This commit is contained in:
parent
f20b1293fc
commit
ade807c6dc
239 changed files with 922 additions and 561 deletions
|
|
@ -419,6 +419,7 @@ impl<T: fmt::Show> fmt::Show for RingBuf<T> {
|
|||
mod tests {
|
||||
use std::fmt::Show;
|
||||
use std::prelude::*;
|
||||
use std::gc::{GC, Gc};
|
||||
use test::Bencher;
|
||||
use test;
|
||||
|
||||
|
|
@ -473,10 +474,10 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_boxes() {
|
||||
let a: @int = @5;
|
||||
let b: @int = @72;
|
||||
let c: @int = @64;
|
||||
let d: @int = @175;
|
||||
let a: Gc<int> = box(GC) 5;
|
||||
let b: Gc<int> = box(GC) 72;
|
||||
let c: Gc<int> = box(GC) 64;
|
||||
let d: Gc<int> = box(GC) 175;
|
||||
|
||||
let mut deq = RingBuf::new();
|
||||
assert_eq!(deq.len(), 0);
|
||||
|
|
@ -621,7 +622,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_param_at_int() {
|
||||
test_parameterized::<@int>(@5, @72, @64, @175);
|
||||
test_parameterized::<Gc<int>>(box(GC) 5, box(GC) 72,
|
||||
box(GC) 64, box(GC) 175);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue