Skip to content

Commit a17b20e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
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)