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

@@ -540,9 +540,9 @@ impl server::TokenStream for Rustc<'_, '_> {
fn from_str(&mut self, src: &str) -> Self::TokenStream {
source_str_to_stream(
self.psess(),
FileName::proc_macro_source_code(src),
src.to_string(),
self.psess(),
Some(self.call_site),
)
}