diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-03-31 22:32:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-31 22:32:50 +0200 |
| commit | d732934fa8f7c2aa3c3c4b66fd26b969276a8505 (patch) | |
| tree | 7cccec4ef655b5006e7554e66a9fcebddb9332f9 /compiler/rustc_interface/src/interface.rs | |
| parent | bd4e3f37dac1689941b5e70250ad2792bd6fcc6f (diff) | |
| parent | 4e63ab6fc11ab942052c485ed121a606f0a7d319 (diff) | |
| download | rust-d732934fa8f7c2aa3c3c4b66fd26b969276a8505.tar.gz rust-d732934fa8f7c2aa3c3c4b66fd26b969276a8505.zip | |
Rollup merge of #109805 - nnethercote:source_map-cleanups, r=bjorn3
Source map cleanups r? `@bjorn3`
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 5e38ca034ac..be7fa9378ca 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -292,7 +292,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se override_queries: config.override_queries, }; - rustc_span::with_source_map(compiler.sess.parse_sess.clone_source_map(), move || { + rustc_span::set_source_map(compiler.sess.parse_sess.clone_source_map(), move || { let r = { let _sess_abort_error = OnDrop(|| { compiler.sess.finish_diagnostics(registry); |
