Skip to content

Commit c4b8702

Browse files
committed
1 parent 523a3c7 commit c4b8702

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ repository and compiled from source or installed from
2727
of the nightly toolchain is supported at any given time.
2828

2929
<!-- NOTE: Keep in sync with nightly date on rust-toolchain. -->
30-
It's recommended to use `nightly-2021-08-31` toolchain.
31-
You can install it by using `rustup install nightly-2021-08-31` if you already have rustup.
30+
It's recommended to use `nightly-2021-09-10` toolchain.
31+
You can install it by using `rustup install nightly-2021-09-10` if you already have rustup.
3232
Then you can do:
3333

3434
```sh
35-
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-08-31
36-
$ cargo +nightly-2021-08-31 install --git https://github.com/rust-lang/rust-semverver
35+
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-09-10
36+
$ cargo +nightly-2021-09-10 install --git https://github.com/rust-lang/rust-semverver
3737
```
3838

3939
You'd also need `cmake` for some dependencies, and a few common libraries (if you hit

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# NOTE: Keep in sync with nightly date on README
22
[toolchain]
3-
channel = "nightly-2021-08-31"
3+
channel = "nightly-2021-09-10"
44
components = ["llvm-tools-preview", "rustc-dev"]

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#![allow(clippy::unnested_or_patterns)]
88
#![deny(warnings)]
99

10-
extern crate rustc_hir; // Requires `rustup component add rustc-dev`
10+
extern crate rustc_const_eval; // Requires `rustup component add rustc-dev`
11+
extern crate rustc_hir;
1112
extern crate rustc_infer;
1213
extern crate rustc_middle;
13-
extern crate rustc_mir;
1414
extern crate rustc_session;
1515
extern crate rustc_span;
1616
extern crate rustc_trait_selection;

src/traverse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::{
1717
typeck::{BoundContext, TypeComparisonContext},
1818
};
1919
use log::{debug, info};
20+
use rustc_const_eval::const_eval::is_const_fn;
2021
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res, Res::Def};
2122
use rustc_hir::def_id::DefId;
2223
use rustc_hir::hir_id::HirId;
@@ -31,7 +32,6 @@ use rustc_middle::{
3132
Visibility::Public,
3233
},
3334
};
34-
use rustc_mir::const_eval::is_const_fn;
3535
use std::collections::{BTreeMap, HashSet, VecDeque};
3636

3737
/// The main entry point to our analysis passes.

0 commit comments

Comments
 (0)