We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33acc96 commit abf449fCopy full SHA for abf449f
src/formatting.rs
@@ -34,7 +34,7 @@ impl<'b, T: Write + 'b> Session<'b, T> {
34
return Err(ErrorKind::VersionMismatch);
35
}
36
37
- rustc_span::with_session_globals(self.config.edition().into(), || {
+ rustc_span::create_session_if_not_set_then(self.config.edition().into(), |_| {
38
if self.config.disable_all_formatting() {
39
// When the input is from stdin, echo back the input.
40
if let Input::Text(ref buf) = input {
0 commit comments