Skip to content

Commit 3942ad4

Browse files
committed
fix unittest
1 parent 46ffe9d commit 3942ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/util/parser_testing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::path::PathBuf;
2222
pub fn string_to_stream(source_str: String) -> TokenStream {
2323
let ps = ParseSess::new(FilePathMapping::empty());
2424
source_file_to_stream(&ps, ps.source_map()
25-
.new_source_file(PathBuf::from("bogofile").into(), source_str), None)
25+
.new_source_file(PathBuf::from("bogofile").into(), source_str), None).0
2626
}
2727

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

0 commit comments

Comments
 (0)