-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
typeck: Save the index of private fields #50693
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
Nominating for beta backport since this fixes a regression. |
We should rather save index of the private candidate into tables ( |
@petrochenkov Good call! Updated |
Save the index of all fields regardless of their visibility. Problems could occur later when attempting to index fields in error recovery if they are not inserted.
@bors r+ |
📌 Commit 55d9a33 has been approved by |
@petrochenkov I updated the commit (The commit message was no longer valid). bors will probably need another r+ |
@bors r- |
@bors r+ |
📌 Commit cdd6139 has been approved by |
@bors p=1 (fixes beta regression) |
@bors p=79 |
⌛ Testing commit cdd6139 with merge 30a72ad189ffc91338a72ca7e957c60f6082a5e6... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1 similar comment
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Is the error related to rust-lang/cargo#5493 or rust-lang/cargo#5481? Or is it a known intermittent failure? It doesn't look related to the changes here, but I could be wrong. |
Seems to be spurious. Let's retry... @bors retry |
typeck: Save the index of private fields Save the index of all fields regardless of their visibility. Problems could occur later when attempting to index fields in error recovery if they are not inserted. Fixes: #50493
☀️ Test successful - status-appveyor, status-travis |
[beta] Process backports Merged on master: * #50648: Fix volatile_store and nontemporal_store * #50735: rustc: don't trip an assertion for enums with present but uninhabited variants. * #50693: typeck: Save the index of private fields * #50748: Update stdsimd module * #50694: Fix self referential impl Trait substitutions r? @alexcrichton
Save the index of all fields regardless of their visibility. Problems
could occur later when attempting to index fields in error recovery if
they are not inserted.
Fixes: #50493