Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit a35f6c1

Browse files
committed
1 parent 459fbf1 commit a35f6c1

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
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-09-30` toolchain.
31-
You can install it by using `rustup install nightly-2021-09-30` if you already have rustup.
30+
It's recommended to use `nightly-2021-10-15` toolchain.
31+
You can install it by using `rustup install nightly-2021-10-15` 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-09-30
36-
$ cargo +nightly-2021-09-30 install --git https://github.com/rust-lang/rust-semverver
35+
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-10-15
36+
$ cargo +nightly-2021-10-15 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

Lines changed: 1 addition & 1 deletion
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-09-30"
3+
channel = "nightly-2021-10-15"
44
components = ["llvm-tools-preview", "rustc-dev"]

src/traverse.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::{
1717
typeck::{BoundContext, TypeComparisonContext},
1818
};
1919
use log::{debug, info};
20-
use rustc_const_eval::const_eval::is_const_fn;
2120
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Res, Res::Def};
2221
use rustc_hir::def_id::DefId;
2322
use rustc_hir::hir_id::HirId;
@@ -363,8 +362,8 @@ fn diff_fn<'tcx>(changes: &mut ChangeSet, tcx: TyCtxt<'tcx>, old: Res, new: Res)
363362
let old_def_id = old.def_id();
364363
let new_def_id = new.def_id();
365364

366-
let old_const = is_const_fn(tcx, old_def_id);
367-
let new_const = is_const_fn(tcx, new_def_id);
365+
let old_const = tcx.is_const_fn(old_def_id);
366+
let new_const = tcx.is_const_fn(new_def_id);
368367

369368
if old_const != new_const {
370369
changes.add_change(

0 commit comments

Comments
 (0)