We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c086baf commit cba9661Copy full SHA for cba9661
src/libsyntax/util/parser_testing.rs
@@ -12,8 +12,11 @@ use std::path::PathBuf;
12
/// Map a string to tts, using a made-up filename:
13
pub fn string_to_stream(source_str: String) -> TokenStream {
14
let ps = ParseSess::new(FilePathMapping::empty());
15
- source_file_to_stream(&ps, ps.source_map()
16
- .new_source_file(PathBuf::from("bogofile").into(), source_str), None)
+ source_file_to_stream(
+ &ps,
17
+ ps.source_map().new_source_file(PathBuf::from("bogofile").into(),
18
+ source_str,
19
+ ), None).0
20
}
21
22
/// Map string to parser (via tts)
0 commit comments