-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin to use
ConstArgKind::Path
for all paths, not just params
Note that these test output changes are not desired.
- Loading branch information
Showing
10 changed files
with
105 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,50 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/opaque_types2.rs:13:11 | ||
error[E0391]: cycle detected when computing type of `Foo::{opaque#0}` | ||
--> $DIR/opaque_types2.rs:3:12 | ||
| | ||
LL | type Foo = impl Sized; | ||
| ---------- the found opaque type | ||
... | ||
LL | foo::<C>(); | ||
| ^ expected `u32`, found opaque type | ||
| ^^^^^^^^^^ | ||
| | ||
= note: expected type `u32` | ||
found opaque type `Foo` | ||
note: ...which requires computing type of opaque `Foo::{opaque#0}`... | ||
--> $DIR/opaque_types2.rs:3:12 | ||
| | ||
LL | type Foo = impl Sized; | ||
| ^^^^^^^^^^ | ||
note: ...which requires type-checking `bar`... | ||
--> $DIR/opaque_types2.rs:9:1 | ||
| | ||
LL | / fn bar() | ||
LL | | where | ||
LL | | Foo:, | ||
| |_________^ | ||
note: ...which requires evaluating type-level constant... | ||
--> $DIR/opaque_types2.rs:7:1 | ||
| | ||
LL | const C: Foo = 42; | ||
| ^^^^^^^^^^^^ | ||
note: ...which requires const-evaluating + checking `C`... | ||
--> $DIR/opaque_types2.rs:7:1 | ||
| | ||
LL | const C: Foo = 42; | ||
| ^^^^^^^^^^^^ | ||
note: ...which requires caching mir of `C` for CTFE... | ||
--> $DIR/opaque_types2.rs:7:1 | ||
| | ||
LL | const C: Foo = 42; | ||
| ^^^^^^^^^^^^ | ||
note: ...which requires elaborating drops for `C`... | ||
--> $DIR/opaque_types2.rs:7:1 | ||
| | ||
LL | const C: Foo = 42; | ||
| ^^^^^^^^^^^^ | ||
= note: ...which requires normalizing `Foo`... | ||
= note: ...which again requires computing type of `Foo::{opaque#0}`, completing the cycle | ||
note: cycle used when checking that `Foo::{opaque#0}` is well-formed | ||
--> $DIR/opaque_types2.rs:3:12 | ||
| | ||
LL | type Foo = impl Sized; | ||
| ^^^^^^^^^^ | ||
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. | ||
For more information about this error, try `rustc --explain E0391`. |
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