diff options
| author | bors <bors@rust-lang.org> | 2014-10-14 04:02:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-14 04:02:48 +0000 |
| commit | a1e2eb0395941f5ca79cd59c8ab0a9f3133a2df0 (patch) | |
| tree | 2782a6efa84382e234077244930b2d78d54ce7ee /src/libsyntax | |
| parent | 1c3ddd297128a96f72be09bddf138e4e603a7aa1 (diff) | |
| parent | 2e2d681d88d99c4bb7033b852f98d6f979af5672 (diff) | |
| download | rust-a1e2eb0395941f5ca79cd59c8ab0a9f3133a2df0.tar.gz rust-a1e2eb0395941f5ca79cd59c8ab0a9f3133a2df0.zip | |
auto merge of #18017 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index bf4734529a2..c1aa588eecc 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1333,6 +1333,7 @@ impl Item_ { pub fn descriptive_variant(&self) -> &str { match *self { ItemStatic(..) => "static item", + ItemConst(..) => "constant item", ItemFn(..) => "function", ItemMod(..) => "module", ItemForeignMod(..) => "foreign module", @@ -1340,7 +1341,8 @@ impl Item_ { ItemEnum(..) => "enum", ItemStruct(..) => "struct", ItemTrait(..) => "trait", - _ => "item" + ItemMac(..) | + ItemImpl(..) => "item" } } } |
