diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-13 15:09:25 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-13 15:09:25 -0700 |
| commit | 412f4d1fc7ec8858ee4c91abd78097ac48cb15ef (patch) | |
| tree | c65d36082a01074505f69b45278aedb7102b6476 /src/libsyntax | |
| parent | e9f241bc5d3edb5c18d5b64933823daeb6bb257c (diff) | |
| parent | c56c9fcf08603ab88ec36a7e0757d29129339097 (diff) | |
| download | rust-412f4d1fc7ec8858ee4c91abd78097ac48cb15ef.tar.gz rust-412f4d1fc7ec8858ee4c91abd78097ac48cb15ef.zip | |
rollup merge of #17927 : alexcrichton/more-const
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" } } } |
