diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-02-07 14:24:34 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-02-22 02:14:25 +0100 |
| commit | d38aab397e3295ead5869f84cd54044c1759c6d7 (patch) | |
| tree | 0daf6cb9a56ce6ae0fc28dc86c153e9761b67657 /src/libsyntax/parse | |
| parent | 7e382132a57953e09bbb4e41152107032d69a2cf (diff) | |
| download | rust-d38aab397e3295ead5869f84cd54044c1759c6d7.tar.gz rust-d38aab397e3295ead5869f84cd54044c1759c6d7.zip | |
Rename DefTrait to DefaultImpl
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 55c4afc36a5..0a5afcb3301 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -31,7 +31,7 @@ use ast::{ExprVec, ExprWhile, ExprWhileLet, ExprForLoop, Field, FnDecl}; use ast::{ForeignItem, ForeignItemStatic, ForeignItemFn, ForeignMod, FunctionRetTy}; use ast::{Ident, Inherited, ImplItem, Item, Item_, ItemStatic}; use ast::{ItemEnum, ItemFn, ItemForeignMod, ItemImpl, ItemConst}; -use ast::{ItemMac, ItemMod, ItemStruct, ItemTrait, ItemTy, ItemDefTrait}; +use ast::{ItemMac, ItemMod, ItemStruct, ItemTrait, ItemTy, ItemDefaultImpl}; use ast::{ItemExternCrate, ItemUse}; use ast::{LifetimeDef, Lit, Lit_}; use ast::{LitBool, LitChar, LitByte, LitBinary}; @@ -4843,7 +4843,7 @@ impl<'a> Parser<'a> { self.expect(&token::OpenDelim(token::Brace)); self.expect(&token::CloseDelim(token::Brace)); (ast_util::impl_pretty_name(&opt_trait, None), - ItemDefTrait(unsafety, opt_trait.unwrap()), None) + ItemDefaultImpl(unsafety, opt_trait.unwrap()), None) } else { if opt_trait.is_some() { ty = self.parse_ty_sum(); |
