diff --git a/README.md b/README.md index cbe156e0..2739175c 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ repository and compiled from source or installed from of the nightly toolchain is supported at any given time. -It's recommended to use `nightly-2021-08-31` toolchain. -You can install it by using `rustup install nightly-2021-08-31` if you already have rustup. +It's recommended to use `nightly-2021-09-10` toolchain. +You can install it by using `rustup install nightly-2021-09-10` if you already have rustup. Then you can do: ```sh -$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-08-31 -$ cargo +nightly-2021-08-31 install --git https://github.com/rust-lang/rust-semverver +$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-09-10 +$ cargo +nightly-2021-09-10 install --git https://github.com/rust-lang/rust-semverver ``` You'd also need `cmake` for some dependencies, and a few common libraries (if you hit diff --git a/rust-toolchain b/rust-toolchain index 63050498..544711cd 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,4 +1,4 @@ # NOTE: Keep in sync with nightly date on README [toolchain] -channel = "nightly-2021-08-31" +channel = "nightly-2021-09-10" components = ["llvm-tools-preview", "rustc-dev"] diff --git a/src/lib.rs b/src/lib.rs index 619d7d08..2a283e8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,10 +7,10 @@ #![allow(clippy::unnested_or_patterns)] #![deny(warnings)] -extern crate rustc_hir; // Requires `rustup component add rustc-dev` +extern crate rustc_const_eval; // Requires `rustup component add rustc-dev` +extern crate rustc_hir; extern crate rustc_infer; extern crate rustc_middle; -extern crate rustc_mir; extern crate rustc_session; extern crate rustc_span; extern crate rustc_trait_selection; diff --git a/src/traverse.rs b/src/traverse.rs index f09f7dee..6ce3aa5c 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -31,7 +31,7 @@ use rustc_middle::{ Visibility::Public, }, }; -use rustc_mir::const_eval::is_const_fn; +use rustc_const_eval::const_eval::is_const_fn; use std::collections::{BTreeMap, HashSet, VecDeque}; /// The main entry point to our analysis passes.