Check lazy type aliases for well-formedness by fmease · Pull Request #114228 · r...
source link: https://github.com/rust-lang/rust/pull/114228
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Check lazy type aliases for well-formedness #114228
Conversation
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. F-lazy_type_alias #![feature(lazy_type_alias)]
labels
compiler/rustc_lint/src/builtin.rs
Outdated
|| ty.has_opaque_types() |
||
|| ty.has_inherent_projections() |
||
{ |
||
// Bounds of lazy type aliases and on eager ones that contain opaque types or inherent |
Contributor
Author
Let me know if the phrasing is ok, bounds sounds ambiguous to me. One might wonder it refers to the bounds on the generic parameters (which is the case) or if it refers to the item bounds (i.e. the B
in type T: B = …
which is obviously invalid for type aliases).
Contributor
Author
Update: Done. |
added A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
labels
This comment has been minimized.
Contributor
☔ The latest upstream changes (presumably #114226) made this pull request unmergeable. Please resolve the merge conflicts. |
Contributor
@bors r+ rollup |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
No reviews
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK