Skip to content

Change rustc_middle/src/hooks/mod.rs to hooks.rs - #161927

Open
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:hooks
Open

Change rustc_middle/src/hooks/mod.rs to hooks.rs#161927
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:hooks

Conversation

@Zalathar

Copy link
Copy Markdown
Member

Back when hooks were first introduced in #116052, the hooks/mod.rs file structure would have matched query/mod.rs. But the list of queries has since been moved to queries.rs, making the hooks file seem awkward in comparison.

Since the hooks module has no submodules, making it a top-level file seems simpler.

There should be no change to compiler behaviour.

r? nnethercote (or compiler)

Back when hooks were first introduced, the `hooks/mod.rs` file structure would
have matched `query/mod.rs`. But the list of queries has since been moved to
`queries.rs`, making the hooks file seem awkward in comparison.

Since the hooks module has no submodules, making it a top-level file seems
simpler.
@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 Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants