diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-12-18 14:38:28 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2016-03-14 15:04:33 -0700 |
| commit | 8fe63e23421f66b730afdbd14c3ec90e39950288 (patch) | |
| tree | 6b1fcefd268964fede314d9d915593c1b57bfaf1 /src/libsyntax/ext | |
| parent | 659ba09b2d9dfe1c9ae50d86ab87fc9acb55a03e (diff) | |
| download | rust-8fe63e23421f66b730afdbd14c3ec90e39950288.tar.gz rust-8fe63e23421f66b730afdbd14c3ec90e39950288.zip | |
Add `default` as contextual keyword, and parse it for impl items.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index f5794f7219b..5bfdab791d6 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1061,6 +1061,7 @@ fn expand_impl_item(ii: ast::ImplItem, fld: &mut MacroExpander) ident: ii.ident, attrs: ii.attrs, vis: ii.vis, + defaultness: ii.defaultness, node: match ii.node { ast::ImplItemKind::Method(sig, body) => { let (sig, body) = expand_and_rename_method(sig, body, fld); |
