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 19b4db3

Browse files
committedJun 22, 2024
Make effects an incomplete feature
1 parent a6a83d3 commit 19b4db3

File tree

122 files changed

+772
-109
lines changed

Some content is hidden

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

122 files changed

+772
-109
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ check-pass
22

3-
#![feature(const_trait_impl, effects)]
3+
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
44

55
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
66
*t == *t
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/call-generic-method-fail.rs:3:30
3+
|
4+
LL | #![feature(const_trait_impl, effects)]
5+
| ^^^^^^^
6+
|
7+
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+

‎tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(const_trait_impl, effects)]
1+
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
22

33
struct S;
44

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.