Update and fix a few tests

This commit is contained in:
Alex Crichton
2017-06-21 12:42:44 -07:00
committed by Jeffrey Seyfried
parent 302935ff2a
commit d316874c87
4 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ use std::iter::Peekable;
/// Map a string to tts, using a made-up filename:
pub fn string_to_stream(source_str: String) -> TokenStream {
let ps = ParseSess::new(FilePathMapping::empty());
filemap_to_stream(&ps, ps.codemap().new_filemap("bogofile".to_string(), source_str))
filemap_to_stream(&ps, ps.codemap().new_filemap("bogofile".to_string(), source_str), None)
}
/// Map string to parser (via tts)