diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-10 21:17:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-10 21:17:07 -0700 |
| commit | 94533d924e2735c64885ca35ff412d1f6e46efaf (patch) | |
| tree | 33077d386f36aa35755eae018455db29c93406e8 /compiler/rustc_codegen_cranelift | |
| parent | 12551a5151e8de7bf8162455c8ec33651db6f5f9 (diff) | |
| parent | 907aa440cf51859b97dd0a1e25b6f15d344f4ebe (diff) | |
| download | rust-94533d924e2735c64885ca35ff412d1f6e46efaf.tar.gz rust-94533d924e2735c64885ca35ff412d1f6e46efaf.zip | |
Rollup merge of #114622 - petrochenkov:noplugin, r=oli-obk
rustc: Move `crate_types` and `stable_crate_id` from `Session` to `GlobalCtxt` Removes two pieces of mutable state. Follow up to https://github.com/rust-lang/rust/pull/114578.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/driver/jit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/jit.rs b/compiler/rustc_codegen_cranelift/src/driver/jit.rs index 3ea38842148..1c606494f38 100644 --- a/compiler/rustc_codegen_cranelift/src/driver/jit.rs +++ b/compiler/rustc_codegen_cranelift/src/driver/jit.rs @@ -98,7 +98,7 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! { tcx.sess.fatal("JIT mode doesn't work with `cargo check`"); } - if !tcx.sess.crate_types().contains(&rustc_session::config::CrateType::Executable) { + if !tcx.crate_types().contains(&rustc_session::config::CrateType::Executable) { tcx.sess.fatal("can't jit non-executable crate"); } |
