Skip to content

Commit

Permalink
rust: Fix peg-syntax-ext for filemap API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Apr 29, 2017
1 parent af1bbd6 commit de96c18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions peg-syntax-ext/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![feature(plugin_registrar, quote, rustc_private, box_patterns)]
extern crate rustc_plugin;
#[macro_use] pub extern crate syntax;
#[macro_use] extern crate syntax_pos;
extern crate rustc_errors as errors;

extern crate peg;
Expand Down Expand Up @@ -54,7 +53,7 @@ fn expand_peg_file<'s>(cx: &'s mut ExtCtxt, sp: codemap::Span, ident: ast::Ident
return DummyResult::any(sp);
}

cx.codemap().new_filemap(format!("{}", path.display()), None, "".to_string());
cx.codemap().new_filemap(format!("{}", path.display()), "".to_string());

expand_peg(cx, sp, ident, &source)
}
Expand Down

0 comments on commit de96c18

Please sign in to comment.