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

Commit 5572ce6

Browse files
committed
1 parent 3c18a4a commit 5572ce6

File tree

4 files changed

+9
-6
lines changed

4 files changed

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

src/translate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
393393
substs: target_substs,
394394
},
395395
constness: pred.constness,
396+
polarity: pred.polarity,
396397
}
397398
} else {
398399
return None;

src/typeck.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ use rustc_middle::{
1818
error::TypeError,
1919
fold::TypeFoldable,
2020
subst::{GenericArg, InternalSubsts, SubstsRef},
21-
GenericParamDefKind, ParamEnv, Predicate, PredicateKind, TraitRef, Ty, TyCtxt,
21+
GenericParamDefKind, ImplPolarity, ParamEnv, Predicate, PredicateKind, TraitRef, Ty,
22+
TyCtxt,
2223
},
2324
};
2425
use rustc_trait_selection::traits::FulfillmentContext;
@@ -77,6 +78,7 @@ impl<'a, 'tcx> BoundContext<'a, 'tcx> {
7778
let predicate = ty::Binder::dummy(PredicateKind::Trait(TraitPredicate {
7879
trait_ref: checked_trait_ref,
7980
constness: BoundConstness::NotConst,
81+
polarity: ImplPolarity::Positive,
8082
}))
8183
.to_predicate(self.infcx.tcx);
8284
let obligation = Obligation::new(ObligationCause::dummy(), self.given_param_env, predicate);

0 commit comments

Comments
 (0)