diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-08-08 18:28:20 +0800 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-08-09 14:17:54 +0800 |
| commit | b1072412189eb27934ada08a13805fc5d3ce8f25 (patch) | |
| tree | aaea0bed9767e8cfcc419db2e2cbe15d89b7a2cd | |
| parent | 5dd98a4eb1af02defa2ca86d79f54b6837b50c33 (diff) | |
| download | rust-b1072412189eb27934ada08a13805fc5d3ce8f25.tar.gz rust-b1072412189eb27934ada08a13805fc5d3ce8f25.zip | |
rustc: Move `crate_types` from `Session` to `GlobalCtxt`
Removes a piece of mutable state. Follow up to #114578.
| -rw-r--r-- | src/driver/jit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 3ea38842148..1c606494f38 100644 --- a/src/driver/jit.rs +++ b/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"); } |
