diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-02-05 15:20:26 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-02-07 01:42:54 -0800 |
| commit | cba96613de1c6e3978dbb39ef689cf997cef0ac0 (patch) | |
| tree | da1045c877399882f55d4a85745e68f1449971c9 | |
| parent | c086bafc8fd0f1dbc033dbb8a46fb6eb16d15d5c (diff) | |
| download | rust-cba96613de1c6e3978dbb39ef689cf997cef0ac0.tar.gz rust-cba96613de1c6e3978dbb39ef689cf997cef0ac0.zip | |
fix test
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index dbe2b8d39f2..bcf1da66c04 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -12,8 +12,11 @@ use std::path::PathBuf; /// 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()); - source_file_to_stream(&ps, ps.source_map() - .new_source_file(PathBuf::from("bogofile").into(), source_str), None) + source_file_to_stream( + &ps, + ps.source_map().new_source_file(PathBuf::from("bogofile").into(), + source_str, + ), None).0 } /// Map string to parser (via tts) |
