diff --git a/tests/ui/unstable-features/negative_impls.rs b/tests/run-pass/negative_impls.rs similarity index 93% rename from tests/ui/unstable-features/negative_impls.rs rename to tests/run-pass/negative_impls.rs index bcfe3e42..007dd720 100644 --- a/tests/ui/unstable-features/negative_impls.rs +++ b/tests/run-pass/negative_impls.rs @@ -1,7 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT #![feature(negative_impls)] -#![deny(suspicious_auto_trait_impls)] // https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/design.20meeting.3A.20backlog.20bonanza/near/269471299 // https://github.com/taiki-e/pin-project/issues/340 diff --git a/tests/ui/unstable-features/negative_impls.stderr b/tests/ui/unstable-features/negative_impls.stderr deleted file mode 100644 index f0d87f0f..00000000 --- a/tests/ui/unstable-features/negative_impls.stderr +++ /dev/null @@ -1,19 +0,0 @@ -error: cross-crate traits with a default impl, like `Unpin`, should not be specialized - --> tests/ui/unstable-features/negative_impls.rs:19:1 - | -19 | impl Unpin for Foo {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = warning: this will change its meaning in a future release! - = note: for more information, see issue #93367 - = note: `MyPhantomPinned` is not a generic parameter -note: try using the same sequence of generic parameters as the struct definition - --> tests/ui/unstable-features/negative_impls.rs:10:1 - | -10 | struct Foo { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -note: the lint level is defined here - --> tests/ui/unstable-features/negative_impls.rs:4:9 - | -4 | #![deny(suspicious_auto_trait_impls)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^