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:
parent
25972aec67
commit
ab192a0c97
4 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue