Skip to content

Commit de96c18

Browse files
committed
rust: Fix peg-syntax-ext for filemap API change
rust-lang/rust#41508
1 parent af1bbd6 commit de96c18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

peg-syntax-ext/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(plugin_registrar, quote, rustc_private, box_patterns)]
22
extern crate rustc_plugin;
33
#[macro_use] pub extern crate syntax;
4-
#[macro_use] extern crate syntax_pos;
54
extern crate rustc_errors as errors;
65

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

57-
cx.codemap().new_filemap(format!("{}", path.display()), None, "".to_string());
56+
cx.codemap().new_filemap(format!("{}", path.display()), "".to_string());
5857

5958
expand_peg(cx, sp, ident, &source)
6059
}

0 commit comments

Comments
 (0)