Skip to content

Commit 66e8991

Browse files
authoredAug 11, 2023
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 rust-lang/rust#114578.
2 parents 1e3b1b4 + a17b20e commit 66e8991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/bin/miri.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
6969
}
7070

7171
init_late_loggers(handler, tcx);
72-
if !tcx.sess.crate_types().contains(&CrateType::Executable) {
72+
if !tcx.crate_types().contains(&CrateType::Executable) {
7373
tcx.sess.fatal("miri only makes sense on bin crates");
7474
}
7575

0 commit comments

Comments
 (0)