1
Fork 0

Reorder source_str_to_stream arguments.

It's the only one of these functions where `psess` isn't the first
argument.
This commit is contained in:
Nicholas Nethercote 2024-05-31 14:33:56 +10:00
parent 25972aec67
commit ab192a0c97
4 changed files with 6 additions and 6 deletions

View file

@ -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.