Skip to content

Commit 0b5ddf3

Browse files
Yeet effects feature
1 parent ace9e4c commit 0b5ddf3

File tree

179 files changed

+286
-766
lines changed

Some content is hidden

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

179 files changed

+286
-766
lines changed

compiler/rustc_feature/src/removed.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ declare_features! (
100100
Some("renamed to `doc_notable_trait`")),
101101
/// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
102102
(removed, dropck_parametricity, "1.38.0", Some(28498), None),
103+
/// Uses generic effect parameters for ~const bounds
104+
(removed, effects, "CURRENT_RUSTC_VERSION", Some(102090),
105+
Some("removed, redundant with `#![feature(const_trait_impl)]`")),
103106
/// Allows defining `existential type`s.
104107
(removed, existential_type, "1.38.0", Some(63063),
105108
Some("removed in favor of `#![feature(type_alias_impl_trait)]`")),

compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,6 @@ declare_features! (
462462
(unstable, doc_masked, "1.21.0", Some(44027)),
463463
/// Allows `dyn* Trait` objects.
464464
(incomplete, dyn_star, "1.65.0", Some(102425)),
465-
/// Uses generic effect parameters for ~const bounds
466-
(incomplete, effects, "1.72.0", Some(102090)),
467465
/// Allows exhaustive pattern matching on types that contain uninhabited types.
468466
(unstable, exhaustive_patterns, "1.13.0", Some(51085)),
469467
/// Allows explicit tail calls via `become` expression.

tests/crashes/112623.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ known-bug: #112623
22

3-
#![feature(const_trait_impl, effects)]
3+
#![feature(const_trait_impl)]
44

55
#[const_trait]
66
trait Value {

tests/crashes/119701.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ known-bug: #119701
2-
#![feature(const_trait_impl, effects, generic_const_exprs)]
2+
#![feature(const_trait_impl, generic_const_exprs)]
33

44
fn main() {
55
let _ = process::<()>([()]);

tests/crashes/121411.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ known-bug: #121411
2-
#![feature(const_trait_impl, effects)]
2+
#![feature(const_trait_impl)]
33

44
#[const_trait]
55
trait Foo {

tests/rustdoc/const-effect-param.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Check that we don't render host effect parameters & arguments.
22

33
#![crate_name = "foo"]
4-
#![feature(effects, const_trait_impl)]
5-
#![allow(incomplete_features)]
4+
#![feature(const_trait_impl)]
65

76
#[const_trait]
87
pub trait Tr {

tests/rustdoc/const-fn-effects.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#![crate_name = "foo"]
2-
#![feature(effects)]
3-
#![allow(incomplete_features)]
42

53
//@ has foo/fn.bar.html
64
//@ has - '//pre[@class="rust item-decl"]' 'pub const fn bar() -> '

tests/rustdoc/inline_cross/auxiliary/const-effect-param.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ compile-flags: -Znext-solver
2-
#![feature(effects, const_trait_impl)]
3-
#![allow(incomplete_features)]
2+
#![feature(const_trait_impl)]
43

54
#[const_trait]
65
pub trait Resource {}

tests/rustdoc/rfc-2632-const-trait-impl.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
//
99
// FIXME(effects) add `const_trait` to `Fn` so we use `~const`
1010
// FIXME(effects) restore `const_trait` to `Destruct`
11-
#![allow(incomplete_features)]
12-
#![feature(const_trait_impl, effects)]
11+
#![feature(const_trait_impl)]
1312
#![crate_name = "foo"]
1413

1514
use std::marker::Destruct;

tests/ui/const-generics/const_trait_fn-issue-88433.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//@ build-pass
22
//@ compile-flags: -Znext-solver
33

4-
#![allow(incomplete_features)]
5-
#![feature(const_trait_impl, effects)]
4+
#![feature(const_trait_impl)]
65

76
#[const_trait]
87
trait Func<T> {

0 commit comments

Comments
 (0)