Skip to content

Rustup #8057

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

Merged
merged 8 commits into from
Dec 2, 2021
Merged

Rustup #8057

merged 8 commits into from
Dec 2, 2021

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Dec 2, 2021

r? @ghost

changelog: none

estebank and others added 8 commits November 25, 2021 18:39
This oversight appears to have gone unnoticed for a long time
without causing issues, but it should still be fixed.
Visit `param_env` field in Obligation's `TypeFoldable` impl

This oversight appears to have gone unnoticed for a long time
without causing issues, but it should still be fixed.
Prior to PR #91205, checking for errors in the overall obligation
would check checking the `ParamEnv`, due to an incorrect
`super_visit_with` impl. With this bug fixed, we will now
bail out of impl candidate assembly if the `ParamEnv` contains
any error types.

In practice, this appears to be overly conservative - when an error
occurs early in compilation, we end up giving up early for some
predicates that we could have successfully evaluated without overflow.
By only checking for errors in the predicate itself, we avoid causing
additional spurious 'type annotations needed' errors after a 'real'
error has already occurred.

With this PR, the diagnostic changes caused by PR #91205 are reverted.
@flip1995
Copy link
Member Author

flip1995 commented Dec 2, 2021

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Dec 2, 2021

📌 Commit ec57cc1 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Dec 2, 2021

⌛ Testing commit ec57cc1 with merge 392b0c5...

@bors
Copy link
Contributor

bors commented Dec 2, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 392b0c5 to master...

@bors bors merged commit 392b0c5 into rust-lang:master Dec 2, 2021
@flip1995 flip1995 deleted the rustup branch December 2, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants