-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Iterate generics_def_id_map in reverse order to fix P-critical issue #100340
Conversation
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
r? @compiler-errors |
@bors r=compiler-errors p=10 |
// | ||
// for the opaque type generated on `impl Sized + 'b`, We want the result to be: | ||
// impl_sized#'b, so iterating forward is the wrong thing to do. | ||
for map in self.generics_def_id_map.iter().rev() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice (in a separate fix) to avoid exposing this iter()
altogether by wrapping this in an API called something like "StackMap
" that does the iteration internally and only exposes a .get
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, was thinking about the same thing. Didn't want to complicate this PR so it's easier to review for beta backport.
⌛ Testing commit 750a04e with merge 4d7a7c7e368e82c236fabba1a65b30420cc3d2f3... |
💥 Test timed out |
@bors retry test timeout |
⌛ Testing commit 750a04e with merge 8c93d28e444a7ee121a38f8ccff88a457dbb3710... |
If this fails again then let's give precedence to rollups @bors p=5 |
This comment was marked as outdated.
This comment was marked as outdated.
💔 Test failed - checks-actions |
wtf @bors retry failed to get 200 response from |
The job Click to see the possible cause of the failure (guessed by this bot)
|
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#99573 (Stabilize backtrace) - rust-lang#100069 (Add error if link_ordinal used with unsupported link kind) - rust-lang#100086 (Add more `// unit-test`s to MIR opt tests) - rust-lang#100332 (Rename integer log* methods to ilog*) - rust-lang#100334 (Suggest a missing semicolon before an array) - rust-lang#100340 (Iterate generics_def_id_map in reverse order to fix P-critical issue) - rust-lang#100345 (docs: remove repetition in `is_numeric` function docs) - rust-lang#100352 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…mulacrum Rollup of beta backports This rolls up bumping stage0 to released stable and: * Iterate generics_def_id_map in reverse order to fix P-critical issue rust-lang#100340 * [BETA 1.64] Only override published resolver when the workspace is different rust-lang/cargo#10970 r? `@Mark-Simulacrum`
Closes #100187
Fixes a
P-critical
beta regression.