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
|
@ -10,9 +10,11 @@
|
|||
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
enum t { foo(@int), }
|
||||
use std::gc::{Gc, GC};
|
||||
|
||||
enum t { foo(Gc<int>), }
|
||||
|
||||
pub fn main() {
|
||||
let tt = foo(@10);
|
||||
let tt = foo(box(GC) 10);
|
||||
match tt { foo(_z) => { } }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue