Skip to content

Commit

Permalink
Fix breakage due to rust-lang/rust#77649
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 19, 2020
1 parent 54523f0 commit c9f2dbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2020-09-30
nightly-2020-10-15
5 changes: 2 additions & 3 deletions src/bin/rust-semver-public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate rustc_interface;
extern crate rustc_span;

use log::debug;
use rustc_driver::{Callbacks, Compilation};
use rustc_driver::{Callbacks, Compilation, RunCompiler};
use rustc_interface::{interface, Queries};
use rustc_span::source_map::Pos;
use semverver::run_traversal;
Expand Down Expand Up @@ -114,8 +114,7 @@ fn main() {
.collect()
};

let args = args;
rustc_driver::run_compiler(&args, &mut PubCallbacks, None, None, None)
RunCompiler::new(&args, &mut PubCallbacks).run()
}
.map_or_else(|_| 1, |_| 0),
)
Expand Down
5 changes: 2 additions & 3 deletions src/bin/rust-semverver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate rustc_interface;
extern crate rustc_span;

use log::debug;
use rustc_driver::{Callbacks, Compilation};
use rustc_driver::{Callbacks, Compilation, RunCompiler};
use rustc_interface::{interface, Queries};
use rustc_span::source_map::Pos;
use semverver::run_analysis;
Expand Down Expand Up @@ -140,8 +140,7 @@ fn main() {
.collect()
};

let args = args;
rustc_driver::run_compiler(&args, &mut SemverCallbacks, None, None, None)
RunCompiler::new(&args, &mut SemverCallbacks).run()
}
.map_or_else(|_| 1, |_| 0),
)
Expand Down

0 comments on commit c9f2dbe

Please sign in to comment.