Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize when collecting TAITs in signature #116819

Conversation

compiler-errors
Copy link
Member

Normalize before visiting when collecting opaques allowed to be defined by body.

r? oli-obk

Just putting this up for initial review, not super cleaned up yet.

@rustbot rustbot 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. labels Oct 16, 2023
@rust-log-analyzer

This comment has been minimized.

@compiler-errors
Copy link
Member Author

Ah, there's that stack overflow 🤣

Comment on lines -1 to -2
//! Test that we don't follow through projections to find
//! opaque types.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the comments to explain what the test is testing now (same for all the other tests)

compiler/rustc_ty_utils/src/opaque_types.rs Show resolved Hide resolved
compiler/rustc_ty_utils/src/opaque_types.rs Show resolved Hide resolved
@compiler-errors
Copy link
Member Author

I've reworked this a bit, but as a consequence, I think we need to consider all usages of a TAIT in a signature to be defining. I'll write a bit more about why later.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 20, 2023
@bors
Copy link
Contributor

bors commented Oct 25, 2023

☔ The latest upstream changes (presumably #117076) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors
Copy link
Member Author

I'm gonna put this on pause until we decide whether we even want to have the signature rule for TAITs

@rustbot blocked

@rustbot rustbot added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 8, 2024
@compiler-errors
Copy link
Member Author

Don't think we're gonna go with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants