-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid creating an Instance only to immediately disassemble it again
- Loading branch information
Showing
13 changed files
with
54 additions
and
114 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
15 changes: 0 additions & 15 deletions
15
tests/ui/associated-consts/associated-const-type-parameter-arms.stderr
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
27 changes: 27 additions & 0 deletions
27
tests/ui/associated-consts/associated-const-type-parameter-pattern.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[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/associated-const-type-parameter-pattern.rs:20:9 | ||
| | ||
LL | A::X => println!("A::X"), | ||
| ^^^^ | ||
|
||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/associated-const-type-parameter-pattern.rs:22:9 | ||
| | ||
LL | B::X => println!("B::X"), | ||
| ^^^^ | ||
|
||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/associated-const-type-parameter-pattern.rs:30:9 | ||
| | ||
LL | let A::X = arg; | ||
| ^^^^ | ||
|
||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/associated-const-type-parameter-pattern.rs:28:48 | ||
| | ||
LL | pub fn test_let_pat<A: Foo, B: Foo>(arg: EFoo, A::X: EFoo) { | ||
| ^^^^ | ||
|
||
error: aborting due to 4 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0158`. |
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,14 +1,15 @@ | ||
error: constant pattern depends on a generic parameter | ||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/issue-73976-polymorphic.rs:20:37 | ||
| | ||
LL | matches!(GetTypeId::<T>::VALUE, GetTypeId::<T>::VALUE) | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: constant pattern depends on a generic parameter | ||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/issue-73976-polymorphic.rs:31:42 | ||
| | ||
LL | matches!(GetTypeNameLen::<T>::VALUE, GetTypeNameLen::<T>::VALUE) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0158`. |
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,9 @@ | ||
error: constant pattern depends on a generic parameter | ||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/issue-79137-toogeneric.rs:12:43 | ||
| | ||
LL | matches!(GetVariantCount::<T>::VALUE, GetVariantCount::<T>::VALUE) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0158`. |
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,14 +1,15 @@ | ||
error: constant pattern depends on a generic parameter | ||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/const-match-pat-generic.rs:7:9 | ||
| | ||
LL | const { V } => {}, | ||
| ^^^^^^^^^^^ | ||
|
||
error: constant pattern depends on a generic parameter | ||
error[E0158]: constant pattern depends on a generic parameter | ||
--> $DIR/const-match-pat-generic.rs:19:9 | ||
| | ||
LL | const { f(V) } => {}, | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0158`. |
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
tests/ui/pattern/issue-68393-let-pat-assoc-constant.stderr
This file was deleted.
Oops, something went wrong.