Skip to content

Commit cba9661

Browse files
committed
fix test
1 parent c086baf commit cba9661

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libsyntax/util/parser_testing.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ use std::path::PathBuf;
1212
/// Map a string to tts, using a made-up filename:
1313
pub fn string_to_stream(source_str: String) -> TokenStream {
1414
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)
15+
source_file_to_stream(
16+
&ps,
17+
ps.source_map().new_source_file(PathBuf::from("bogofile").into(),
18+
source_str,
19+
), None).0
1720
}
1821

1922
/// Map string to parser (via tts)

0 commit comments

Comments
 (0)