forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
55 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/ui/specialization/defaultimpl/coherence-ice-issue-118987.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/coherence-ice-issue-118987.rs:3:12 | ||
| | ||
LL | #![feature(specialization)] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information | ||
= help: consider using `min_specialization` instead, which is more stable and complete | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
2 changes: 1 addition & 1 deletion
2
tests/ui/specialization/specialization-default-items-drop-coherence.current.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
tests/crashes/124207.rs → ...ty/opaque-type-layout-ice-issue-124207.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
//@ known-bug: #124207 | ||
// A regression test for #124207. | ||
// | ||
// This previous caused an ICE in the old solver. | ||
#![feature(transmutability)] | ||
#![feature(type_alias_impl_trait)] | ||
trait OpaqueTrait {} | ||
type OpaqueType = impl OpaqueTrait; | ||
//~^ ERROR unconstrained opaque type | ||
trait AnotherTrait {} | ||
impl<T: std::mem::BikeshedIntrinsicFrom<(), ()>> AnotherTrait for T {} | ||
//~^ ERROR type provided when a constant was expected | ||
impl AnotherTrait for OpaqueType {} | ||
//~^ ERROR conflicting implementations of trait `AnotherTrait` | ||
pub fn main() {} |
27 changes: 27 additions & 0 deletions
27
tests/ui/transmutability/opaque-type-layout-ice-issue-124207.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
error: unconstrained opaque type | ||
--> $DIR/opaque-type-layout-ice-issue-124207.rs:7:19 | ||
| | ||
LL | type OpaqueType = impl OpaqueTrait; | ||
| ^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `OpaqueType` must be used in combination with a concrete type within the same module | ||
|
||
error[E0747]: type provided when a constant was expected | ||
--> $DIR/opaque-type-layout-ice-issue-124207.rs:10:45 | ||
| | ||
LL | impl<T: std::mem::BikeshedIntrinsicFrom<(), ()>> AnotherTrait for T {} | ||
| ^^ | ||
|
||
error[E0119]: conflicting implementations of trait `AnotherTrait` | ||
--> $DIR/opaque-type-layout-ice-issue-124207.rs:12:1 | ||
| | ||
LL | impl<T: std::mem::BikeshedIntrinsicFrom<(), ()>> AnotherTrait for T {} | ||
| ------------------------------------------------------------------- first implementation here | ||
LL | | ||
LL | impl AnotherTrait for OpaqueType {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
Some errors have detailed explanations: E0119, E0747. | ||
For more information about an error, try `rustc --explain E0119`. |