Skip to content

Various incr comp session refactors - #165145

Merged
rust-bors[bot] merged 10 commits into
rust-lang:mainfrom
bjorn3:lto_refactors23
Nov 25, 2026
Merged

rust-bors[bot] merged 10 commits into
rust-lang:mainfrom
bjorn3:lto_refactors23

Conversation

@bjorn3

@bjorn3 bjorn3 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

View all comments

The first half of this PR is preparations for being able to create multiple incr comp sessions for a single crate. This will become important to store the post-ThinLTO incr comp artifacts once -Zno-link/-Zlink-only will run ThinLTO in a separate rustc session, thus requiring the main incr comp session to be finished before ThinLTO runs. The second half of this PR is a bunch of minor cleanups to load_dep_graph.

Part of rust-lang/compiler-team#908

@rustbot

rustbot commented Oct 29, 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

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 29, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 29, 2026
@rustbot

rustbot commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

r? @Enselic

rustbot has assigned @Enselic.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler, incremental
  • compiler, incremental expanded to 77 candidates
  • Random selection from 22 candidates

@rust-log-analyzer

This comment has been minimized.

@Enselic

Enselic commented Oct 29, 2026

Copy link
Copy Markdown
Member

@rustbot reroll

@rustbot rustbot assigned fee1-dead and unassigned Enselic Oct 29, 2026
@rustbot

rustbot commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

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

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbot

This comment has been minimized.

@fee1-dead

Copy link
Copy Markdown
Member

@rustbot reroll

@rustbot rustbot assigned wesleywiser and unassigned fee1-dead Nov 11, 2026
@rust-bors

This comment has been minimized.

@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@rustbot

This comment has been minimized.

@bjorn3

bjorn3 commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

r? @petrochenkov

@rustbot rustbot assigned petrochenkov and unassigned wesleywiser Nov 19, 2026
@rust-bors

This comment has been minimized.

We start with a fresh incr comp session dir, so an already existing file
would mean that there is a conflict between two files produced by the
same rustc instance.
@rustbot

rustbot commented Nov 23, 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.

Default::default()
}
LoadResult::DataOutOfDate => {
Ok((prev_graph, prev_work_products)) => (prev_graph, prev_work_products),

@petrochenkov petrochenkov Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Ok((prev_graph, prev_work_products)) => (prev_graph, prev_work_products),
Ok(prev) => prev,

View changes since the review

@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2bd95b0 has been approved by petrochenkov

It is now in the queue for this repository.

@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 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 25, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #166487 (core: Use autotests to split up coretests)
 - #165145 (Various incr comp session refactors)
 - #165337 (Windows: Don't make RwLock writers race readers)
 - #165732 (feat: rename region obligations)
 - #166061 (Offload: generic kernels in a lib)
 - #166539 (Restore the section in `global-target-feature.rs`)
 - #165721 (avoid Terminator:None in coroutine drop shim building)
 - #166453 (perf: remove cache in `FoldEscapingRegions`)
 - #166547 (Pin i686 msvc)
@rust-bors
rust-bors Bot merged commit fb3699c into rust-lang:main Nov 25, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 25, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 25, 2026
Rollup merge of #165145 - bjorn3:lto_refactors23, r=petrochenkov

Various incr comp session refactors

The first half of this PR is preparations for being able to create multiple incr comp sessions for a single crate. This will become important to store the post-ThinLTO incr comp artifacts once `-Zno-link`/`-Zlink-only` will run ThinLTO in a separate rustc session, thus requiring the main incr comp session to be finished before ThinLTO runs. The second half of this PR is a bunch of minor cleanups to `load_dep_graph`.

Part of rust-lang/compiler-team#908
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. 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.

7 participants