diff options
| author | Seiichi Uchida <seuchida@gmail.com> | 2018-01-30 14:53:01 +0900 |
|---|---|---|
| committer | flip1995 <uwdkn@student.kit.edu> | 2018-05-02 11:32:34 +0200 |
| commit | 9b3aea602c37d53bbecf8bff8c77ccbfbefc23d0 (patch) | |
| tree | dafe616470a07d22095ed35f0d2f421d309d44d9 /src/libsyntax/ext | |
| parent | 759bd01e039452a1a357d347aea51348f9ffc443 (diff) | |
Remove Option from the return type of Attribute::name()
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/derive.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/derive.rs b/src/libsyntax/ext/derive.rs index afb233533ba..6bf166dfe95 100644 --- a/src/libsyntax/ext/derive.rs +++ b/src/libsyntax/ext/derive.rs @@ -26,7 +26,8 @@ pub fn collect_derives(cx: &mut ExtCtxt, attrs: &mut Vec<ast::Attribute>) -> Vec return true; } - match attr.parse_list(cx.parse_sess, |parser| parser.parse_path(PathStyle::Mod)) { + match attr.parse_list(cx.parse_sess, + |parser| parser.parse_path_allowing_meta(PathStyle::Mod)) { Ok(ref traits) if traits.is_empty() => { cx.span_warn(attr.span, "empty trait list in `derive`"); false |
