rustup for more LocalDefId changes
This commit is contained in:
parent
e06df3a881
commit
a5445e0230
@ -26,7 +26,7 @@ fn after_analysis<'tcx>(
|
||||
|
||||
self.bencher.iter(|| {
|
||||
let config = miri::MiriConfig::default();
|
||||
miri::eval_main(tcx, entry_def_id, config);
|
||||
miri::eval_main(tcx, entry_def_id.to_def_id(), config);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -1 +1 @@
|
||||
e83f7563495dbe2629b0cbc738afb0808c4482e1
|
||||
fb5615a4771ea3d54256f969dc84d2dfd38d812c
|
||||
|
@ -54,7 +54,7 @@ fn visit_impl_item(&mut self, _impl_item: &'hir hir::ImplItem) {}
|
||||
tcx.hir().krate().visit_all_item_likes(&mut Visitor(tcx));
|
||||
} else if let Some((entry_def_id, _)) = tcx.entry_fn(LOCAL_CRATE) {
|
||||
let config = miri::MiriConfig::default();
|
||||
miri::eval_main(tcx, entry_def_id, config);
|
||||
miri::eval_main(tcx, entry_def_id.to_def_id(), config);
|
||||
|
||||
compiler.session().abort_if_errors();
|
||||
} else {
|
||||
|
@ -39,7 +39,7 @@ fn after_analysis<'tcx>(
|
||||
// Add filename to `miri` arguments.
|
||||
config.args.insert(0, compiler.input().filestem().to_string());
|
||||
|
||||
if let Some(return_code) = miri::eval_main(tcx, entry_def_id, config) {
|
||||
if let Some(return_code) = miri::eval_main(tcx, entry_def_id.to_def_id(), config) {
|
||||
std::process::exit(
|
||||
i32::try_from(return_code).expect("Return value was too large!"),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user