Skip to content

Commit b107241

Browse files
committed
rustc: Move crate_types from Session to GlobalCtxt
Removes a piece of mutable state. Follow up to #114578.
1 parent 5dd98a4 commit b107241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/jit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
9898
tcx.sess.fatal("JIT mode doesn't work with `cargo check`");
9999
}
100100

101-
if !tcx.sess.crate_types().contains(&rustc_session::config::CrateType::Executable) {
101+
if !tcx.crate_types().contains(&rustc_session::config::CrateType::Executable) {
102102
tcx.sess.fatal("can't jit non-executable crate");
103103
}
104104

0 commit comments

Comments
 (0)