Skip to content

Commit 7dc7b58

Browse files
committed
Auto merge of #2821 - RalfJung:rustup, r=RalfJung
Rustup
2 parents b3964e2 + 8e8aa33 commit 7dc7b58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
84c47b8279b39e165dfebeb529eb6d92592e4f8d
1+
439292bc7913399e406d9bb7e8da0f70c6317c6e

src/bin/miri.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ use log::debug;
2222

2323
use rustc_data_structures::sync::Lrc;
2424
use rustc_driver::Compilation;
25-
use rustc_hir::{self as hir, def_id::LOCAL_CRATE, Node};
25+
use rustc_hir::{self as hir, Node};
2626
use rustc_interface::interface::Config;
2727
use rustc_middle::{
2828
middle::exported_symbols::{
2929
ExportedSymbol, SymbolExportInfo, SymbolExportKind, SymbolExportLevel,
3030
},
31+
query::LocalCrate,
3132
ty::{query::ExternProviders, TyCtxt},
3233
};
3334
use rustc_session::config::OptLevel;
@@ -124,8 +125,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
124125
config.override_queries = Some(|_, local_providers, _| {
125126
// `exported_symbols` and `reachable_non_generics` provided by rustc always returns
126127
// an empty result if `tcx.sess.opts.output_types.should_codegen()` is false.
127-
local_providers.exported_symbols = |tcx, cnum| {
128-
assert_eq!(cnum, LOCAL_CRATE);
128+
local_providers.exported_symbols = |tcx, LocalCrate| {
129129
let reachable_set = tcx.with_stable_hashing_context(|hcx| {
130130
tcx.reachable_set(()).to_sorted(&hcx, true)
131131
});

0 commit comments

Comments
 (0)