Skip to content

Commit

Permalink
rust: Fixes for rust-lang/rust#35850
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Sep 1, 2016
1 parent 4260800 commit 31e34b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peg_syntax_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ fn expand_peg(cx: &mut ExtCtxt, sp: codemap::Span, ident: ast::Ident, source: &s

// #![allow(non_snake_case, unused)]
let allow = cx.attribute(DUMMY_SP, cx.meta_list(DUMMY_SP, token::InternedString::new("allow"), vec![
cx.meta_word(DUMMY_SP, token::InternedString::new("non_snake_case")),
cx.meta_word(DUMMY_SP, token::InternedString::new("unused")),
cx.meta_list_item_word(DUMMY_SP, token::InternedString::new("non_snake_case")),
cx.meta_list_item_word(DUMMY_SP, token::InternedString::new("unused")),
]));

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

1 comment on commit 31e34b7

@ivanceras
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying fixing my code for compiler issues on the latest nightly and hit a point where I wish you have an update on rust-peg. Then suddenly a few minutes later a new update crate that works on the current nightly. Never have felt so magical.

I am grateful of your work.

Please sign in to comment.