-
Notifications
You must be signed in to change notification settings - Fork 35
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
1 parent
c151b28
commit 0643708
Showing
27 changed files
with
118 additions
and
53 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Error: check_trait(WellFormed) | ||
|
||
Caused by: | ||
0: prove_where_clause_well_formed(for <ty> (rigid (scalar u32)) : A < ^ty0_0 >) | ||
1: prove_where_clause_well_formed((rigid (scalar u32)) : A < !ty_2 >) | ||
2: failed to prove {@ WellFormedTraitRef(A((rigid (scalar u32)), !ty_2))} given {for <ty> A((rigid (scalar u32)), ^ty0_0)}, got {} | ||
0: prove_where_clause_well_formed(for <ty> u32 : A < ^ty0_0 >) | ||
1: prove_where_clause_well_formed(u32 : A < !ty_2 >) | ||
2: failed to prove {@ WellFormedTraitRef(A(u32, !ty_2))} given {for <ty> A(u32, ^ty0_0)}, got {} |
4 changes: 2 additions & 2 deletions
4
tests/ui/coherence_orphan/CoreTrait_for_CoreStruct_in_Foo.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Error: orphan_check(impl <> CoreTrait < > for (rigid (adt CoreStruct)) where [] { }) | ||
Error: orphan_check(impl <> CoreTrait < > for CoreStruct where [] { }) | ||
|
||
Caused by: | ||
failed to prove {@ IsLocal(CoreTrait((rigid (adt CoreStruct))))} given {}, got {} | ||
failed to prove {@ IsLocal(CoreTrait(CoreStruct))} given {}, got {} |
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,4 +1,4 @@ | ||
Error: orphan_check(impl <> CoreTrait < > for (Unit::Assoc)<(rigid (adt FooStruct))> where [] { }) | ||
Error: orphan_check(impl <> CoreTrait < > for (Unit::Assoc)<FooStruct> where [] { }) | ||
|
||
Caused by: | ||
failed to prove {@ IsLocal(CoreTrait((Unit::Assoc)<(rigid (adt FooStruct))>))} given {}, got {} | ||
failed to prove {@ IsLocal(CoreTrait((Unit::Assoc)<FooStruct>))} given {}, got {} |
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,4 +1,4 @@ | ||
Error: orphan_check(impl <> CoreTrait < > for (Mirror::Assoc)<(rigid (adt CoreStruct))> where [] { }) | ||
Error: orphan_check(impl <> CoreTrait < > for (Mirror::Assoc)<CoreStruct> where [] { }) | ||
|
||
Caused by: | ||
failed to prove {@ IsLocal(CoreTrait((Mirror::Assoc)<(rigid (adt CoreStruct))>))} given {}, got {} | ||
failed to prove {@ IsLocal(CoreTrait((Mirror::Assoc)<CoreStruct>))} given {}, got {} |
4 changes: 2 additions & 2 deletions
4
tests/ui/coherence_orphan/neg_CoreTrait_for_CoreStruct_in_Foo.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Error: orphan_check_neg(impl <> ! CoreTrait < > for (rigid (adt CoreStruct)) where [] {}) | ||
Error: orphan_check_neg(impl <> ! CoreTrait < > for CoreStruct where [] {}) | ||
|
||
Caused by: | ||
failed to prove {@ IsLocal(CoreTrait((rigid (adt CoreStruct))))} given {}, got {} | ||
failed to prove {@ IsLocal(CoreTrait(CoreStruct))} given {}, got {} |
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,4 +1,4 @@ | ||
Error: orphan_check(impl <ty> CoreTrait < (rigid (adt FooStruct)) > for ^ty0_0 where [] { }) | ||
Error: orphan_check(impl <ty> CoreTrait < FooStruct > for ^ty0_0 where [] { }) | ||
|
||
Caused by: | ||
failed to prove {@ IsLocal(CoreTrait(!ty_1, (rigid (adt FooStruct))))} given {}, got {} | ||
failed to prove {@ IsLocal(CoreTrait(!ty_1, FooStruct))} given {}, got {} |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ Caused by: | |
}, | ||
known_true: true, | ||
substitution: { | ||
?ty_1 => (rigid (scalar u32)), | ||
?ty_1 => u32, | ||
}, | ||
}, | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/ui/coherence_overlap/foo_crate_cannot_assume_CoreStruct_does_not_impl_CoreTrait.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Error: impls may overlap: | ||
impl <ty> FooTrait < > for ^ty0_0 where [^ty0_0 : CoreTrait < >] { } | ||
impl <> FooTrait < > for (rigid (adt CoreStruct)) where [] { } | ||
impl <> FooTrait < > for CoreStruct where [] { } |
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,3 +1,3 @@ | ||
Error: impls may overlap: | ||
impl <> Foo < > for (rigid (scalar u32)) where [] { } | ||
impl <> Foo < > for u32 where [] { } | ||
impl <ty> Foo < > for ^ty0_0 where [] { } |
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,3 +1,3 @@ | ||
Error: impls may overlap: | ||
impl <> Foo < > for (rigid (scalar u32)) where [] { } | ||
impl <> Foo < > for u32 where [] { } | ||
impl <ty> Foo < > for ^ty0_0 where [^ty0_0 : Is < >] { } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Error: duplicate impl in current crate: impl <> Foo < > for (rigid (scalar u32)) where [] { } | ||
Error: duplicate impl in current crate: impl <> Foo < > for u32 where [] { } |
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,4 +1,4 @@ | ||
Error: check_trait_impl(impl <const> Foo < const ^const0_0 > for (rigid (scalar u32)) where [type_of_const ^const0_0 is (rigid (scalar u32))] { }) | ||
Error: check_trait_impl(impl <const> Foo < const ^const0_0 > for u32 where [type_of_const ^const0_0 is u32] { }) | ||
|
||
Caused by: | ||
failed to prove {Foo((rigid (scalar u32)), const !const_1)} given {@ ConstHasType(!const_1 , (rigid (scalar u32)))}, got {} | ||
failed to prove {Foo(u32, const !const_1)} given {@ ConstHasType(!const_1 , u32)}, got {} |
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,4 +1,4 @@ | ||
Error: check_trait_impl(impl <> Foo < const value(42, (rigid (scalar u32))) > for (rigid (scalar u32)) where [] { }) | ||
Error: check_trait_impl(impl <> Foo < const value(42, u32) > for u32 where [] { }) | ||
|
||
Caused by: | ||
failed to prove {Foo((rigid (scalar u32)), const value(42, (rigid (scalar u32))))} given {}, got {} | ||
failed to prove {Foo(u32, const value(42, u32))} given {}, got {} |
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,5 +1,5 @@ | ||
Error: check_trait(Foo) | ||
|
||
Caused by: | ||
0: prove_where_clause_well_formed(type_of_const value(0, (rigid (scalar bool))) is (rigid (scalar u32))) | ||
1: failed to prove {(rigid (scalar u32)) = (rigid (scalar bool))} given {@ ConstHasType(value(0, (rigid (scalar bool))) , (rigid (scalar u32)))}, got {} | ||
0: prove_where_clause_well_formed(type_of_const value(0, bool) is u32) | ||
1: failed to prove {u32 = bool} given {@ ConstHasType(value(0, bool) , u32)}, got {} |
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 +1 @@ | ||
Error: failed to prove {@ wf((rigid &(shared) !lt_1 !ty_2))} given {}, got {} | ||
Error: failed to prove {@ wf(&!lt_1 !ty_2)} given {}, got {} |