Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit c6abc9a

Browse files
committed
Fixed build with newest nightly.
1 parent 4bc8190 commit c6abc9a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/bin/rust_semver_public.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern crate syntax;
88

99
use log::debug;
1010
use rustc::middle::cstore::ExternCrate;
11-
use rustc_driver::Callbacks;
11+
use rustc_driver::{Callbacks, Compilation};
1212
use rustc_interface::interface;
1313
use semverver::run_traversal;
1414
use std::{
@@ -37,7 +37,7 @@ fn main() {
3737
struct PubCallbacks;
3838

3939
impl Callbacks for PubCallbacks {
40-
fn after_analysis(&mut self, compiler: &interface::Compiler) -> bool {
40+
fn after_analysis(&mut self, compiler: &interface::Compiler) -> Compilation {
4141
debug!("running rust-semver-public after_analysis callback");
4242

4343
compiler.global_ctxt().unwrap().peek_mut().enter(|tcx| {
@@ -66,7 +66,7 @@ fn main() {
6666

6767
debug!("rust-semver-public after_analysis callback finished!");
6868

69-
false
69+
Compilation::Stop
7070
}
7171
}
7272

src/bin/rust_semverver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern crate syntax;
1111

1212
use log::debug;
1313
use rustc::middle::cstore::ExternCrate;
14-
use rustc_driver::Callbacks;
14+
use rustc_driver::{Callbacks, Compilation};
1515
use rustc_interface::interface;
1616
use semverver::run_analysis;
1717
use std::{
@@ -39,7 +39,7 @@ fn main() {
3939
struct SemverCallbacks;
4040

4141
impl Callbacks for SemverCallbacks {
42-
fn after_analysis(&mut self, compiler: &interface::Compiler) -> bool {
42+
fn after_analysis(&mut self, compiler: &interface::Compiler) -> Compilation {
4343
debug!("running rust-semverver after_analysis callback");
4444

4545
let verbose =
@@ -89,7 +89,7 @@ fn main() {
8989

9090
debug!("rust-semverver after_analysis callback finished!");
9191

92-
false
92+
Compilation::Stop
9393
}
9494
}
9595

0 commit comments

Comments
 (0)