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

Don't emit same goal as input during wf::unnormalized_obligations #112965

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Jun 23, 2023

r? @aliemjay cc @lcnr

I accidentally pruned the logic to handle WF(?0) when writing wf::unnormalized_obligations.

idk if you wanted to construct a test first, but this is an obvious fix. Copied the comment from above.

Fixes rust-lang/trait-system-refactor-initiative#36

@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 Jun 23, 2023
@compiler-errors compiler-errors changed the title Don't emit same goal as input during wf obligations Don't emit same goal as input during wf::unnormalized_obligations Jun 23, 2023
@rust-log-analyzer

This comment has been minimized.

@compiler-errors
Copy link
Member Author

Well, looks like we were dropping some WF obligations on the ground. Seems like that's not sufficient to actually cause unsoundness with the UI tests committed already, but does seem like this change has the right effect 😸

@aliemjay
Copy link
Member

@bors r+ rollup=always

@bors
Copy link
Contributor

bors commented Jun 23, 2023

📌 Commit 2eb7d69 has been approved by aliemjay

It is now in the queue for this repository.

@bors bors 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 Jun 23, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 24, 2023
…mpiler-errors

Rollup of 8 pull requests

Successful merges:

 - rust-lang#111087 (Implement `Sync` for `mpsc::Sender`)
 - rust-lang#112763 (Bump compiler_builtins)
 - rust-lang#112963 (Stop bubbling out hidden types from the eval obligation queries)
 - rust-lang#112965 (Don't emit same goal as input during `wf::unnormalized_obligations`)
 - rust-lang#112973 (Make sure to include default en-US ftl resources for `rustc_error` crate)
 - rust-lang#112981 (Fix return type notation errors with -Zlower-impl-trait-in-trait-to-assoc-ty)
 - rust-lang#112983 (Fix return type notation associated type suggestion when -Zlower-impl-trait-in-trait-to-assoc-ty)
 - rust-lang#112986 (Update cargo)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 766db81 into rust-lang:master Jun 24, 2023
@rustbot rustbot added this to the 1.72.0 milestone Jun 24, 2023
@compiler-errors compiler-errors deleted the circular-wf branch August 11, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

WF of a type variable unconditionally evaluates to Yes
5 participants