1
Fork 0

Improve Path spans.

This commit is contained in:
Jeffrey Seyfried 2017-03-29 07:17:18 +00:00
parent f08d5ad4c5
commit 8fde04b4a2
9 changed files with 95 additions and 67 deletions

View file

@ -218,9 +218,7 @@ pub fn filemap_to_stream(sess: &ParseSess, filemap: Rc<FileMap>) -> TokenStream
/// Given stream and the ParseSess, produce a parser
pub fn stream_to_parser<'a>(sess: &'a ParseSess, stream: TokenStream) -> Parser<'a> {
let mut p = Parser::new(sess, stream, None, false);
p.check_unknown_macro_variable();
p
Parser::new(sess, stream, None, false)
}
/// Parse a string representing a character literal into its final form.