Skip to content

Commit 31e34b7

Browse files
committed
rust: Fixes for rust-lang/rust#35850
1 parent 4260800 commit 31e34b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peg_syntax_ext.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ fn expand_peg(cx: &mut ExtCtxt, sp: codemap::Span, ident: ast::Ident, source: &s
7777

7878
// #![allow(non_snake_case, unused)]
7979
let allow = cx.attribute(DUMMY_SP, cx.meta_list(DUMMY_SP, token::InternedString::new("allow"), vec![
80-
cx.meta_word(DUMMY_SP, token::InternedString::new("non_snake_case")),
81-
cx.meta_word(DUMMY_SP, token::InternedString::new("unused")),
80+
cx.meta_list_item_word(DUMMY_SP, token::InternedString::new("non_snake_case")),
81+
cx.meta_list_item_word(DUMMY_SP, token::InternedString::new("unused")),
8282
]));
8383

8484
MacEager::items(SmallVector::one(cx.item_mod(sp, sp, ident, vec![allow], ast.items.clone())))

0 commit comments

Comments
 (0)