mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Bless the remaining ui tests
This commit is contained in:
parent
5c0f55d508
commit
23ba4ceb9e
@ -13,5 +13,7 @@ impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR found both positive and nega
|
|||||||
unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
|
unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
|
||||||
|
|
||||||
impl !Send for TestType<i32> {}
|
impl !Send for TestType<i32> {}
|
||||||
|
//~^ WARNING
|
||||||
|
//~| WARNING this will change its meaning
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -16,7 +16,23 @@ LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
|
|||||||
LL | unsafe impl<T: 'static> Send for TestType<T> {}
|
LL | unsafe impl<T: 'static> Send for TestType<T> {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
warning: cross-crate traits with a default impl, like `Send`, should not be specialized
|
||||||
|
--> $DIR/coherence-conflicting-negative-trait-impl.rs:15:1
|
||||||
|
|
|
||||||
|
LL | impl !Send for TestType<i32> {}
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= warning: this will change its meaning in a future release!
|
||||||
|
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
|
||||||
|
= note: `i32` is not a generic parameter
|
||||||
|
note: try using the same sequence of generic parameters as the struct definition
|
||||||
|
--> $DIR/coherence-conflicting-negative-trait-impl.rs:7:1
|
||||||
|
|
|
||||||
|
LL | struct TestType<T>(::std::marker::PhantomData<T>);
|
||||||
|
| ^^^^^^^^^^^^^^^^^^
|
||||||
|
= note: `#[warn(suspicious_auto_trait_impls)]` on by default
|
||||||
|
|
||||||
|
error: aborting due to 2 previous errors; 1 warning emitted
|
||||||
|
|
||||||
Some errors have detailed explanations: E0119, E0751.
|
Some errors have detailed explanations: E0119, E0751.
|
||||||
For more information about an error, try `rustc --explain E0119`.
|
For more information about an error, try `rustc --explain E0119`.
|
||||||
|
@ -14,7 +14,8 @@ impl TheTrait<TheType> for isize { }
|
|||||||
|
|
||||||
impl TheTrait<isize> for TheType { }
|
impl TheTrait<isize> for TheType { }
|
||||||
|
|
||||||
impl !Send for Vec<isize> { }
|
impl !Send for Vec<isize> { } //~ ERROR E0117
|
||||||
//~^ ERROR E0117
|
//~^ WARNING
|
||||||
|
//~| WARNING this will change its meaning
|
||||||
|
|
||||||
fn main() { }
|
fn main() { }
|
||||||
|
@ -21,6 +21,19 @@ LL | impl !Send for Vec<isize> { }
|
|||||||
|
|
|
|
||||||
= note: define and implement a trait or new type instead
|
= note: define and implement a trait or new type instead
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
warning: cross-crate traits with a default impl, like `Send`, should not be specialized
|
||||||
|
--> $DIR/coherence-orphan.rs:17:1
|
||||||
|
|
|
||||||
|
LL | impl !Send for Vec<isize> { }
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= warning: this will change its meaning in a future release!
|
||||||
|
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
|
||||||
|
= note: `isize` is not a generic parameter
|
||||||
|
note: try using the same sequence of generic parameters as the struct definition
|
||||||
|
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||||
|
= note: `#[warn(suspicious_auto_trait_impls)]` on by default
|
||||||
|
|
||||||
|
error: aborting due to 2 previous errors; 1 warning emitted
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0117`.
|
For more information about this error, try `rustc --explain E0117`.
|
||||||
|
@ -15,5 +15,7 @@ impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR found both positive and nega
|
|||||||
unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
|
unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
|
||||||
|
|
||||||
impl !Send for TestType<i32> {}
|
impl !Send for TestType<i32> {}
|
||||||
|
//~^ WARNING
|
||||||
|
//~| WARNING this will change its meaning
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -16,7 +16,23 @@ LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
|
|||||||
LL | unsafe impl<T: 'static> Send for TestType<T> {}
|
LL | unsafe impl<T: 'static> Send for TestType<T> {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
warning: cross-crate traits with a default impl, like `Send`, should not be specialized
|
||||||
|
--> $DIR/issue-106755.rs:17:1
|
||||||
|
|
|
||||||
|
LL | impl !Send for TestType<i32> {}
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= warning: this will change its meaning in a future release!
|
||||||
|
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
|
||||||
|
= note: `i32` is not a generic parameter
|
||||||
|
note: try using the same sequence of generic parameters as the struct definition
|
||||||
|
--> $DIR/issue-106755.rs:9:1
|
||||||
|
|
|
||||||
|
LL | struct TestType<T>(::std::marker::PhantomData<T>);
|
||||||
|
| ^^^^^^^^^^^^^^^^^^
|
||||||
|
= note: `#[warn(suspicious_auto_trait_impls)]` on by default
|
||||||
|
|
||||||
|
error: aborting due to 2 previous errors; 1 warning emitted
|
||||||
|
|
||||||
Some errors have detailed explanations: E0119, E0751.
|
Some errors have detailed explanations: E0119, E0751.
|
||||||
For more information about an error, try `rustc --explain E0119`.
|
For more information about an error, try `rustc --explain E0119`.
|
||||||
|
Loading…
Reference in New Issue
Block a user