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

Make sure to walk into nested const blocks in RegionResolutionVisitor #135308

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

compiler-errors
Copy link
Member

Fixes #135306

I tried auditing the rest of the visitors that called .visit_body, and it seems like this is the only one that was missing it. I wonder if we should modify intravisit (specifcially, that NestedBodyFilter stuff) to make this less likely to happen, tho...

r? oli-obk

@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 Jan 9, 2025
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
curl: (22) The requested URL returned error: 404
curl: (22) The requested URL returned error: 404
ERROR: failed to download llvm from ci

    HELP: There could be two reasons behind this:
        1) The host triple is not supported for `download-ci-llvm`.
        2) Old builds get deleted after a certain time.
    HELP: In either case, disable `download-ci-llvm` in your config.toml:
    [llvm]
    download-ci-llvm = false
    
Build completed unsuccessfully in 0:00:23

@oli-obk
Copy link
Contributor

oli-obk commented Jan 10, 2025

. I wonder if we should modify intravisit (specifcially, that NestedBodyFilter stuff) to make this less likely to happen, tho...

Yea. It's an annoying balance between requiring every visitor to explicitly handle it and perf (not looking up bodies just to drop them from the visitor having an empty visit_nested_body or sth). Maybe the default visit_body could panic if the NestedBodyFilter isn't sth supporting nested bodies? Kinda forcing all those visitors to use that instead of manual visit_body calls that wouldn't have helped here

@oli-obk
Copy link
Contributor

oli-obk commented Jan 10, 2025

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 10, 2025

📌 Commit 9585f36 has been approved by oli-obk

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 Jan 10, 2025
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Jan 10, 2025
…-obk

Make sure to walk into nested const blocks in `RegionResolutionVisitor`

Fixes rust-lang#135306

I tried auditing the rest of the visitors that called `.visit_body`, and it seems like this is the only one that was missing it. I wonder if we should modify intravisit (specifcially, that `NestedBodyFilter` stuff) to make this less likely to happen, tho...

r? oli-obk
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 10, 2025
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#133088 (`-Zrandomize-layout` harder. `Foo<T> != Foo<U>`)
 - rust-lang#134619 (Improve prose around `as_slice` example of IterMut)
 - rust-lang#134855 (Add `default_field_values` entry to unstable book)
 - rust-lang#134908 (Fix `ptr::from_ref` documentation example comment)
 - rust-lang#135275 (Add Pin::as_deref_mut to 1.84 relnotes)
 - rust-lang#135294 (Make `bare-fn-no-impl-fn-ptr-99875` test less dependent on path width)
 - rust-lang#135304 (Add tests cases from review of rust-lang#132289)
 - rust-lang#135308 (Make sure to walk into nested const blocks in `RegionResolutionVisitor`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c51bfaf into rust-lang:master Jan 10, 2025
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 10, 2025
Rollup merge of rust-lang#135308 - compiler-errors:scope-visit, r=oli-obk

Make sure to walk into nested const blocks in `RegionResolutionVisitor`

Fixes rust-lang#135306

I tried auditing the rest of the visitors that called `.visit_body`, and it seems like this is the only one that was missing it. I wonder if we should modify intravisit (specifcially, that `NestedBodyFilter` stuff) to make this less likely to happen, tho...

r? oli-obk
@rustbot rustbot added this to the 1.86.0 milestone Jan 10, 2025
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.

ICE: broken mir with inline_const_pat
5 participants