Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 13, 2021
1 parent 523a3c7 commit c4b8702
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -27,13 +27,13 @@ repository and compiled from source or installed from
of the nightly toolchain is supported at any given time.

<!-- NOTE: Keep in sync with nightly date on rust-toolchain. -->
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
Expand Down
2 changes: 1 addition & 1 deletion 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"]
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/traverse.rs
Expand Up @@ -17,6 +17,7 @@ use crate::{
typeck::{BoundContext, TypeComparisonContext},
};
use log::{debug, info};
use rustc_const_eval::const_eval::is_const_fn;
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res, Res::Def};
use rustc_hir::def_id::DefId;
use rustc_hir::hir_id::HirId;
Expand All @@ -31,7 +32,6 @@ use rustc_middle::{
Visibility::Public,
},
};
use rustc_mir::const_eval::is_const_fn;
use std::collections::{BTreeMap, HashSet, VecDeque};

/// The main entry point to our analysis passes.
Expand Down

0 comments on commit c4b8702

Please sign in to comment.