This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern crate syntax;
8
8
9
9
use log:: debug;
10
10
use rustc:: middle:: cstore:: ExternCrate ;
11
- use rustc_driver:: Callbacks ;
11
+ use rustc_driver:: { Callbacks , Compilation } ;
12
12
use rustc_interface:: interface;
13
13
use semverver:: run_traversal;
14
14
use std:: {
@@ -37,7 +37,7 @@ fn main() {
37
37
struct PubCallbacks ;
38
38
39
39
impl Callbacks for PubCallbacks {
40
- fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> bool {
40
+ fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> Compilation {
41
41
debug ! ( "running rust-semver-public after_analysis callback" ) ;
42
42
43
43
compiler. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
@@ -66,7 +66,7 @@ fn main() {
66
66
67
67
debug ! ( "rust-semver-public after_analysis callback finished!" ) ;
68
68
69
- false
69
+ Compilation :: Stop
70
70
}
71
71
}
72
72
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ extern crate syntax;
11
11
12
12
use log:: debug;
13
13
use rustc:: middle:: cstore:: ExternCrate ;
14
- use rustc_driver:: Callbacks ;
14
+ use rustc_driver:: { Callbacks , Compilation } ;
15
15
use rustc_interface:: interface;
16
16
use semverver:: run_analysis;
17
17
use std:: {
@@ -39,7 +39,7 @@ fn main() {
39
39
struct SemverCallbacks ;
40
40
41
41
impl Callbacks for SemverCallbacks {
42
- fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> bool {
42
+ fn after_analysis ( & mut self , compiler : & interface:: Compiler ) -> Compilation {
43
43
debug ! ( "running rust-semverver after_analysis callback" ) ;
44
44
45
45
let verbose =
@@ -89,7 +89,7 @@ fn main() {
89
89
90
90
debug ! ( "rust-semverver after_analysis callback finished!" ) ;
91
91
92
- false
92
+ Compilation :: Stop
93
93
}
94
94
}
95
95
You can’t perform that action at this time.
0 commit comments