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

Erase regions before doing uninhabited check in borrowck #107532

Merged

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Jan 31, 2023

Also, fingerprint query keys/values when debug assertions are enabled. This should make it easier to check for issues like this without -Cincremental, and make UI tests a bit cleaner. edit: moving that to a separate PR

Fixes #107505

@rustbot
Copy link
Collaborator

rustbot commented Jan 31, 2023

r? @jackh726

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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 Jan 31, 2023
@jackh726
Copy link
Member

A little bit more background here, on the problem and the fix, would be helpful. I can understand why it's okay to do this, but not why it's needed.

@compiler-errors
Copy link
Member Author

compiler-errors commented Jan 31, 2023

but not why it's needed

Not sure exactly whether you're looking for:

Does that make sense? I can go into more detail if you'd like.

@jackh726
Copy link
Member

Right, I'm more curious why we have unresolved inference variables?

r=me, but a comment would be nice

@compiler-errors
Copy link
Member Author

compiler-errors commented Jan 31, 2023

Oh, it's unresolved region vids, cause it's MIR borrowck and we haven't yet done the region solving yet 😆 I'll leave a comment

@compiler-errors
Copy link
Member Author

Gonna drop bbf3383 from this, since that's blocked on some rustdoc + const eval bug :/

I'm still gonna land the real fix for the issue, though.

@compiler-errors
Copy link
Member Author

@bors r=jackh726

@bors
Copy link
Contributor

bors commented Feb 1, 2023

📌 Commit 2c23c7f has been approved by jackh726

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 1, 2023

🌲 The tree is currently closed for pull requests below priority 50. This pull request will be tested once the tree is reopened.

@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 Feb 1, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 2, 2023
…ninhabited, r=jackh726

Erase regions before doing uninhabited check in borrowck

~Also, fingerprint query keys/values when debug assertions are enabled. This should make it easier to check for issues like this without `-Cincremental`, and make UI tests a bit cleaner.~ edit: moving that to a separate PR

Fixes rust-lang#107505
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2023
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#106919 (Recover `_` as `..` in field pattern)
 - rust-lang#107493 (Improve diagnostic for missing space in range pattern)
 - rust-lang#107515 (Improve pretty-printing of `HirIdValidator` errors)
 - rust-lang#107524 (Remove both StorageLive and StorageDead in CopyProp.)
 - rust-lang#107532 (Erase regions before doing uninhabited check in borrowck)
 - rust-lang#107559 (Rename `rust_2015` → `is_rust_2015`)
 - rust-lang#107577 (Reinstate the `hir-stats.rs` tests on stage 1.)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3e0995a into rust-lang:master Feb 2, 2023
@rustbot rustbot added this to the 1.69.0 milestone Feb 2, 2023
@compiler-errors compiler-errors deleted the erase-regions-in-uninhabited branch August 11, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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.

1.67 mir borrow checking ICE: thread 'rustc' panicked at 'region variables should not be hashed: '_#39r'
4 participants