Skip to content

Commit 2d603a2

Browse files
committed
1 parent b494170 commit 2d603a2

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
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-07-23` toolchain.
31-
You can install it by using `rustup install nightly-2021-07-23` if you already have rustup.
30+
It's recommended to use `nightly-2021-08-16` toolchain.
31+
You can install it by using `rustup install nightly-2021-08-16` 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-07-23
36-
$ cargo +nightly-2021-07-23 install --git https://github.com/rust-lang/rust-semverver
35+
$ rustup component add rustc-dev llvm-tools-preview --toolchain nightly-2021-08-16
36+
$ cargo +nightly-2021-08-16 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-07-23"
3+
channel = "nightly-2021-08-16"
44
components = ["llvm-tools-preview", "rustc-dev"]

src/translate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
382382

383383
Some(
384384
match predicate.kind().skip_binder() {
385-
PredicateKind::Trait(pred, constness) => PredicateKind::Trait(
385+
PredicateKind::Trait(pred) => PredicateKind::Trait(
386386
if let Some((target_def_id, target_substs)) = self.translate_orig_substs(
387387
index_map,
388388
pred.trait_ref.def_id,
@@ -393,11 +393,11 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
393393
def_id: target_def_id,
394394
substs: target_substs,
395395
},
396+
constness: pred.constness,
396397
}
397398
} else {
398399
return None;
399400
},
400-
constness,
401401
),
402402
PredicateKind::RegionOutlives(pred) => PredicateKind::RegionOutlives({
403403
let l = self.translate_region(pred.0);

src/traverse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ fn diff_traits<'tcx>(
590590
let old_param_env = tcx.param_env(old);
591591

592592
for bound in old_param_env.caller_bounds() {
593-
if let PredicateKind::Trait(pred, _) = bound.kind().skip_binder() {
593+
if let PredicateKind::Trait(pred) = bound.kind().skip_binder() {
594594
let trait_ref = pred.trait_ref;
595595

596596
debug!("trait_ref substs (old): {:?}", trait_ref.substs);

src/typeck.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ impl<'a, 'tcx> BoundContext<'a, 'tcx> {
7575
use rustc_hir::Constness;
7676
use rustc_middle::ty::{ToPredicate, TraitPredicate};
7777

78-
let predicate = PredicateKind::Trait(
79-
TraitPredicate {
80-
trait_ref: checked_trait_ref,
81-
},
82-
Constness::NotConst,
83-
)
78+
let predicate = PredicateKind::Trait(TraitPredicate {
79+
trait_ref: checked_trait_ref,
80+
constness: Constness::NotConst,
81+
})
8482
.to_predicate(self.infcx.tcx);
8583
let obligation = Obligation::new(ObligationCause::dummy(), self.given_param_env, predicate);
8684
self.fulfill_cx

0 commit comments

Comments
 (0)