diff options
| author | James Miller <bladeon@gmail.com> | 2013-07-06 12:47:42 +1200 | 
|---|---|---|
| committer | James Miller <bladeon@gmail.com> | 2013-07-07 22:51:09 +1200 | 
| commit | 97c5a44d3e805652a54a5693bbf2ab6d44db993b (patch) | |
| tree | d80edf6d0f724bcb435200078501f2564bd9f5f9 /src/libsyntax/ast.rs | |
| parent | 62c83bb17be9a47799d702a9470aa7a84012c782 (diff) | |
| download | rust-97c5a44d3e805652a54a5693bbf2ab6d44db993b.tar.gz rust-97c5a44d3e805652a54a5693bbf2ab6d44db993b.zip | |
De-share trait_ref
Also, makes the pretty-printer use & instead of @ as much as possible, which will help with later changes, though in the interim has produced some... interesting constructs.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 9c3111a6918..a222f03820f 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -132,7 +132,7 @@ pub static crate_node_id: node_id = 0; // the "special" built-in traits (see middle::lang_items) and // detects Copy, Send, Send, and Freeze. pub enum TyParamBound { - TraitTyParamBound(@trait_ref), + TraitTyParamBound(trait_ref), RegionTyParamBound } @@ -1002,9 +1002,9 @@ pub enum item_ { item_ty(@Ty, Generics), item_enum(enum_def, Generics), item_struct(@struct_def, Generics), - item_trait(Generics, ~[@trait_ref], ~[trait_method]), + item_trait(Generics, ~[trait_ref], ~[trait_method]), item_impl(Generics, - Option<@trait_ref>, // (optional) trait this impl implements + Option<trait_ref>, // (optional) trait this impl implements @Ty, // self ~[@method]), // a macro invocation (which includes macro definition) | 
