diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-31 14:33:56 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-05 10:38:02 +1000 |
| commit | ab192a0c97cd0d03d24e402640576474cb62c972 (patch) | |
| tree | a6519e8bfe84fa3929193f45128113d9236b1522 /compiler/rustc_parse/src/parser/tests.rs | |
| parent | 25972aec67e900aeefe4014deecf5ef853a4bab4 (diff) | |
| download | rust-ab192a0c97cd0d03d24e402640576474cb62c972.tar.gz rust-ab192a0c97cd0d03d24e402640576474cb62c972.zip | |
Reorder `source_str_to_stream` arguments.
It's the only one of these functions where `psess` isn't the first argument.
Diffstat (limited to 'compiler/rustc_parse/src/parser/tests.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/tests.rs b/compiler/rustc_parse/src/parser/tests.rs index b72cfd63d00..2900d44089e 100644 --- a/compiler/rustc_parse/src/parser/tests.rs +++ b/compiler/rustc_parse/src/parser/tests.rs @@ -82,7 +82,7 @@ where /// Maps a string to tts, using a made-up filename. pub(crate) fn string_to_stream(source_str: String) -> TokenStream { let psess = psess(); - source_str_to_stream(PathBuf::from("bogofile").into(), source_str, &psess, None) + source_str_to_stream(&psess, PathBuf::from("bogofile").into(), source_str, None) } /// Parses a string, returns a crate. |
