Skip to content

Commit 40ce1fc

Browse files
committed
Update bencher API
1 parent 56c7656 commit 40ce1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benches/helpers/miri_helper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct MiriCompilerCalls<'a> {
1515
}
1616

1717
impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
18-
fn after_analysis(&mut self, compiler: &interface::Compiler<'_>) -> bool {
18+
fn after_analysis(&mut self, compiler: &interface::Compiler) -> bool {
1919
compiler.session().abort_if_errors();
2020

2121
compiler.global_ctxt().unwrap().peek_mut().enter(|tcx| {
@@ -24,7 +24,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls<'_> {
2424
);
2525

2626
self.bencher.iter(|| {
27-
let config = MiriConfig { validate: true, args: vec![] };
27+
let config = miri::MiriConfig { validate: true, args: vec![] };
2828
eval_main(tcx, entry_def_id, config);
2929
});
3030
});

0 commit comments

Comments
 (0)