]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_interface/src/interface.rs
Rollup merge of #99888 - nnethercote:streamline-visitors, r=cjgillot
[rust.git] / compiler / rustc_interface / src / interface.rs
index 6c7ddb4531ef85bd842c7feb45d59d3b7bae20c0..94f81b6607798f7027a227e67d1719858e2046eb 100644 (file)
@@ -329,6 +329,8 @@ pub fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R
     })
 }
 
+// JUSTIFICATION: before session exists, only config
+#[cfg_attr(not(bootstrap), allow(rustc::bad_opt_access))]
 pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Send) -> R {
     tracing::trace!("run_compiler");
     util::run_in_thread_pool_with_globals(