Skip to content

Output type refactors & change analysis query into required_analysis - #166270

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
blyxyas:output-type-refactors
Nov 23, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
blyxyas:output-type-refactors

Conversation

@blyxyas

@blyxyas blyxyas commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Split from #163670

We split OutputType from config.rs to output.rs, and because we only use full_analysis a single time in each compilation (at least currently), convert it to a regular function, and have required_analysis be the query.

r? @bjorn3

@rustbot

rustbot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

rustc_codegen_gcc is developed in its own repository. If possible, consider making this change to rust-lang/rustc_codegen_gcc instead.

cc @antoyo, @GuillaumeGomez

clippy is developed in its own repository. If possible, consider making this change to rust-lang/rust-clippy instead.

cc @rust-lang/clippy

rustc_codegen_cranelift is developed in its own repository. If possible, consider making this change to rust-lang/rustc_codegen_cranelift instead.

cc @bjorn3

The rustc-dev-guide subtree was changed. If your future PRs only touch the subtree, consider submitting them directly to rust-lang/rustc-dev-guide, which is where the document is primarily maintained (and has faster CI).

cc @BoxyUwU, @tshepang

miri is developed in its own repository. If the Miri part of this change can be broken out, consider making this change to rust-lang/miri instead. However, if Miri needs adjusting for rustc changes, just ignore this message.

cc @rust-lang/miri

rustc_errors::emitter was changed

cc @Muscraft

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Nov 20, 2026
@blyxyas blyxyas changed the title Output type refactors Output type refactors & change analysis query into required_analysis Nov 20, 2026
@blyxyas
blyxyas force-pushed the output-type-refactors branch from 479f4ff to e46b12a Compare November 20, 2026 18:15
@rustbot

rustbot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer

This comment has been minimized.

@blyxyas
blyxyas force-pushed the output-type-refactors branch from e46b12a to 85a3b49 Compare November 20, 2026 19:01
@rust-log-analyzer

This comment has been minimized.

@blyxyas
blyxyas force-pushed the output-type-refactors branch from 85a3b49 to 494a742 Compare November 20, 2026 19:45
@rustbot

rustbot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

rustfmt is developed in its own repository. If possible, consider making this change to rust-lang/rustfmt instead.

cc @rust-lang/rustfmt

@rustbot rustbot added the T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue. label Nov 20, 2026
Comment thread compiler/rustc_driver_impl/src/lib.rs Resolved
@bjorn3

bjorn3 commented Nov 21, 2026

Copy link
Copy Markdown
Member

From the PR description:

and because we only use full_analysis a single time in each compilation (at least currently), convert it to a query, and have required_analysis be the query.

You mean convert full_analysis to a regular function, right?

@bjorn3

bjorn3 commented Nov 21, 2026

Copy link
Copy Markdown
Member

r=me with the above fixes

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the output-type-refactors branch from 494a742 to a547746 Compare November 22, 2026 20:49
@blyxyas

blyxyas commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

@bors r=@bjorn3

@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a547746 has been tentatively approved by bjorn3

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot 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 Nov 22, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 23, 2026
Rollup of 4 pull requests

Successful merges:

 - #166270 (Output type refactors & change analysis query into required_analysis)
 - #165302 (Introduce `rustc-unicode` crate for centralising Unicode version management)
 - #166249 (Tidy-sort and use more of `GeneratedAttr`)
 - #166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
@rust-bors
rust-bors Bot merged commit 3fe859e into rust-lang:main Nov 23, 2026
14 checks passed
rust-bors Bot pushed a commit that referenced this pull request Nov 23, 2026
Rollup merge of #166270 - blyxyas:output-type-refactors, r=bjorn3

Output type refactors & change analysis query into required_analysis

Split from #163670

We split OutputType from `config.rs` to `output.rs`, and because we only use full_analysis a single time in each compilation (at least currently), convert it to a regular function, and have `required_analysis` be the query.

r? @bjorn3
@rustbot rustbot added this to the 1.102.0 milestone Nov 23, 2026
github-actions Bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Nov 23, 2026
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis)
 - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management)
 - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`)
 - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
bjorn3 pushed a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Nov 24, 2026
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis)
 - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management)
 - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`)
 - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustfmt Relevant to the rustfmt team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants