We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ffe9d commit 3942ad4Copy full SHA for 3942ad4
src/libsyntax/util/parser_testing.rs
@@ -22,7 +22,7 @@ use std::path::PathBuf;
22
pub fn string_to_stream(source_str: String) -> TokenStream {
23
let ps = ParseSess::new(FilePathMapping::empty());
24
source_file_to_stream(&ps, ps.source_map()
25
- .new_source_file(PathBuf::from("bogofile").into(), source_str), None)
+ .new_source_file(PathBuf::from("bogofile").into(), source_str), None).0
26
}
27
28
/// Map string to parser (via tts)
0 commit comments