Skip to content

Commit

Permalink
rustc: Move crate_types from Session to GlobalCtxt
Browse files Browse the repository at this point in the history
Removes a piece of mutable state.
Follow up to rust-lang#114578.
  • Loading branch information
petrochenkov committed Aug 9, 2023
1 parent 5dd98a4 commit b107241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit b107241

Please sign in to comment.