Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f92a6c4

Browse files
committedJul 1, 2024
Auto merge of rust-lang#127176 - fee1-dead-contrib:fx-requires-next-solver, r=compiler-errors
Make `feature(effects)` require `-Znext-solver` Per rust-lang#120639 (review) I made this a hard error because otherwise it should be a lint and that seemed more complicated. Not sure if this is the best place to put the error though. r? project-const-traits
2 parents ad12a2a + daff015 commit f92a6c4

File tree

121 files changed

+543
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+543
-428
lines changed
 

‎tests/ui/rfcs/rfc-2632-const-trait-impl/auxiliary/staged-api.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
1+
//@ compile-flags: -Znext-solver
2+
#![allow(incomplete_features)]
3+
#![feature(const_trait_impl, effects)]
24
#![feature(staged_api)]
35
#![stable(feature = "rust1", since = "1.0.0")]
46

‎tests/ui/rfcs/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ LL | #![feature(const_trait_impl, effects)]
77
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
88
= note: `#[warn(incomplete_features)]` on by default
99

10+
error: using `#![feature(effects)]` without enabling next trait solver globally
11+
|
12+
= note: the next trait solver must be enabled globally for the effects feature to work correctly
13+
= help: use `-Znext-solver` to enable
14+
1015
error[E0277]: the trait bound `Runtime: ~const Compat` is not satisfied
1116
--> $DIR/call-const-trait-method-fail.rs:25:5
1217
|
@@ -23,6 +28,6 @@ LL | pub trait Plus {
2328
LL | fn plus(self, rhs: Self) -> Self;
2429
| ---- required by a bound in this associated function
2530

26-
error: aborting due to 1 previous error; 1 warning emitted
31+
error: aborting due to 2 previous errors; 1 warning emitted
2732

2833
For more information about this error, try `rustc --explain E0277`.
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.