Skip to content

Commit abbca67

Browse files
committed
Fix compilation for nightly
1 parent b55a642 commit abbca67

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/main.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ extern crate rustc_trait_selection;
3434
#[macro_use]
3535
extern crate tracing;
3636

37-
use std::process::ExitCode;
3837
use std::sync::atomic::AtomicPtr;
3938

4039
use rustc_driver::Callbacks;
@@ -99,13 +98,10 @@ impl Callbacks for MyCallbacks {
9998
}
10099
}
101100

102-
fn main() -> ExitCode {
101+
fn main() {
103102
let handler = EarlyDiagCtxt::new(ErrorOutputType::default());
104103
rustc_driver::init_logger(&handler, rustc_log::LoggerConfig::from_env("KLINT_LOG"));
105104
let args: Vec<_> = std::env::args().collect();
106105

107-
match rustc_driver::RunCompiler::new(&args, &mut MyCallbacks).run() {
108-
Ok(_) => ExitCode::SUCCESS,
109-
Err(_) => ExitCode::FAILURE,
110-
}
106+
rustc_driver::RunCompiler::new(&args, &mut MyCallbacks).run();
111107
}

src/monomorphize_collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ pub fn find_vtable_types_for_unsizing<'tcx>(
917917
}
918918

919919
fn create_fn_mono_item<'tcx>(
920-
tcx: TyCtxt<'tcx>,
920+
_tcx: TyCtxt<'tcx>,
921921
instance: Instance<'tcx>,
922922
source: Span,
923923
) -> Spanned<MonoItem<'tcx>> {

0 commit comments

Comments
 (0)