forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve spans for specialization error
- Loading branch information
1 parent
46b8c23
commit a368830
Showing
6 changed files
with
31 additions
and
18 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
6 changes: 3 additions & 3 deletions
6
src/test/ui/specialization/min_specialization/repeated_projection_type.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,8 +1,8 @@ | ||
error: cannot specialize on `Binder(ProjectionPredicate(ProjectionTy { substs: [V], item_def_id: DefId(0:6 ~ repeated_projection_type[54ea]::Id::This) }, Ty((I,))), [])` | ||
--> $DIR/repeated_projection_type.rs:19:1 | ||
error: cannot specialize on associated type `<V as Id>::This == (I,)` | ||
--> $DIR/repeated_projection_type.rs:19:15 | ||
| | ||
LL | impl<I, V: Id<This = (I,)>> X for V { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
4 changes: 2 additions & 2 deletions
4
src/test/ui/specialization/min_specialization/spec-marker-supertraits.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,8 +1,8 @@ | ||
error: cannot specialize on trait `HasMethod` | ||
--> $DIR/spec-marker-supertraits.rs:22:1 | ||
--> $DIR/spec-marker-supertraits.rs:22:9 | ||
| | ||
LL | impl<T: Marker> Spec for T { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
4 changes: 2 additions & 2 deletions
4
src/test/ui/specialization/min_specialization/specialization_super_trait.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,8 +1,8 @@ | ||
error: cannot specialize on trait `Default` | ||
--> $DIR/specialization_super_trait.rs:13:1 | ||
--> $DIR/specialization_super_trait.rs:13:9 | ||
| | ||
LL | impl<T: Default> SpecMarker for T { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
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
4 changes: 2 additions & 2 deletions
4
src/test/ui/specialization/min_specialization/specialize_on_trait.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,8 +1,8 @@ | ||
error: cannot specialize on trait `SpecMarker` | ||
--> $DIR/specialize_on_trait.rs:15:1 | ||
--> $DIR/specialize_on_trait.rs:15:9 | ||
| | ||
LL | impl<T: SpecMarker> X for T { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|