Skip to content
Permalink
Browse files

rustup for phf_macros

  • Loading branch information...
nrc committed Nov 8, 2015
1 parent 58e2223 commit 4c51ffc6d63f768dea75cab65ad6cb809bce9bb4
Showing with 3 additions and 3 deletions.
  1. +3 −3 phf_macros/src/lib.rs
@@ -159,7 +159,7 @@ fn parse_map(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {

let mut bad = false;
while parser.token != Eof {
let key = cx.expander().fold_expr(parser.parse_expr());
let key = cx.expander().fold_expr(parser.parse_expr_panic());
let key_contents = parse_key(cx, &*key).unwrap_or_else(|| {
bad = true;
Key::Str(InternedString::new(""))
@@ -170,7 +170,7 @@ fn parse_map(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
return None;
}

let value = parser.parse_expr();
let value = parser.parse_expr_panic();

entries.push(Entry {
key_contents: key_contents,
@@ -198,7 +198,7 @@ fn parse_set(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {

let mut bad = false;
while parser.token != Eof {
let key = cx.expander().fold_expr(parser.parse_expr());
let key = cx.expander().fold_expr(parser.parse_expr_panic());
let key_contents = parse_key(cx, &*key).unwrap_or_else(|| {
bad = true;
Key::Str(InternedString::new(""))

0 comments on commit 4c51ffc

Please sign in to comment.
You can’t perform that action at this time.