Skip to content

Add a couple polonius tests and move universal region liveness generation - #161776

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
jackh726:polonius-cleanups
Aug 31, 2026
Merged

Add a couple polonius tests and move universal region liveness generation#161776
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
jackh726:polonius-cleanups

Conversation

@jackh726

Copy link
Copy Markdown
Member

Adds a couple tests that confirm the use/drop-liveness of NLL-boring locals. Also, move universal region liveness to liveness::generate instead of RegionInferenceContext::new, to keep all liveness generation in one place.

r? lqd

@rustbotrustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 25, 2026
@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 25, 2026
@jackh726

Copy link
Copy Markdown
MemberAuthor

Disclosure: An LLM was used to generate these test cases; comments there are mine.

Comment threadcompiler/rustc_borrowck/src/region_infer/mod.rs Outdated
@lqd

lqd commented Aug 31, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-borsBot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

📌 Commit fb7e8fe has been approved by lqd

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 Aug 31, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 31, 2026
Add a couple polonius tests and move universal region liveness generation
Adds a couple tests that confirm the use/drop-liveness of NLL-boring locals. Also, move universal region liveness to liveness::generate instead of `RegionInferenceContext::new`, to keep all liveness generation in one place.
r? lqd
@ZalatharZalathar mentioned this pull request Aug 31, 2026
rust-borsBot pushed a commit that referenced this pull request Aug 31, 2026
Rollup of 5 pull requests
Successful merges:
- #161556 (document some rustc_dump attributes)
- #161353 (Add test for parallel compiler reproducible build)
- #161776 (Add a couple polonius tests and move universal region liveness generation)
- #162002 (Output `tests/debuginfo` raw JSON data on failure in CI)
- #162049 (Fix a compile error on the ESP-IDF target)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 31, 2026
Add a couple polonius tests and move universal region liveness generation
Adds a couple tests that confirm the use/drop-liveness of NLL-boring locals. Also, move universal region liveness to liveness::generate instead of `RegionInferenceContext::new`, to keep all liveness generation in one place.
r? lqd
This was referenced Aug 31, 2026
rust-borsBot pushed a commit that referenced this pull request Aug 31, 2026
…uwer
Rollup of 6 pull requests
Successful merges:
- #162058 (Port 1.98.1 release notes into main)
- #161556 (document some rustc_dump attributes)
- #161776 (Add a couple polonius tests and move universal region liveness generation)
- #162002 (Output `tests/debuginfo` raw JSON data on failure in CI)
- #162049 (Fix a compile error on the ESP-IDF target)
- #162054 (Refine InferCtxtInner docs)
rust-borsBot pushed a commit that referenced this pull request Aug 31, 2026
…uwer
Rollup of 6 pull requests
Successful merges:
- #162058 (Port 1.98.1 release notes into main)
- #161556 (document some rustc_dump attributes)
- #161776 (Add a couple polonius tests and move universal region liveness generation)
- #162002 (Output `tests/debuginfo` raw JSON data on failure in CI)
- #162049 (Fix a compile error on the ESP-IDF target)
- #162054 (Refine InferCtxtInner docs)
rust-borsBot pushed a commit that referenced this pull request Aug 31, 2026
…uwer
Rollup of 6 pull requests
Successful merges:
- #162058 (Port 1.98.1 release notes into main)
- #161556 (document some rustc_dump attributes)
- #161776 (Add a couple polonius tests and move universal region liveness generation)
- #162002 (Output `tests/debuginfo` raw JSON data on failure in CI)
- #162049 (Fix a compile error on the ESP-IDF target)
- #162054 (Refine InferCtxtInner docs)
@rust-bors
rust-borsBot merged commit e20331b into rust-lang:mainAug 31, 2026
13 checks passed
@rustbotrustbot added this to the 1.100.0 milestone Aug 31, 2026
rust-borsBot pushed a commit that referenced this pull request Aug 31, 2026
Rollup merge of #161776 - jackh726:polonius-cleanups, r=lqd
Add a couple polonius tests and move universal region liveness generation
Adds a couple tests that confirm the use/drop-liveness of NLL-boring locals. Also, move universal region liveness to liveness::generate instead of `RegionInferenceContext::new`, to keep all liveness generation in one place.
r? lqd
@jackh726
jackh726 deleted the polonius-cleanups branch August 31, 2026 18:01
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 31, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 31, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Aug 31, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 31, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
jhpratt added a commit to jhpratt/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
jhpratt added a commit to jhpratt/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 1, 2026
A series of Polonius Alpha refactors
Based on rust-lang#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
rust-borsBot pushed a commit that referenced this pull request Sep 1, 2026
Rollup merge of #161937 - jackh726:polonius-cleanups-2, r=lqd
A series of Polonius Alpha refactors
Based on #161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
pullBot pushed a commit to LeeeeeeM/miri that referenced this pull request Sep 2, 2026
A series of Polonius Alpha refactors
Based on rust-lang/rust#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
asukaminato0721 pushed a commit to asukaminato0721/rust-analyzer that referenced this pull request Sep 2, 2026
A series of Polonius Alpha refactors
Based on rust-lang/rust#161776
Best reviewed by commit.
This is a series of refactors to enable lazy liveness calculation. Each commit is relatively targeted.
r? lqd
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@jackh726@lqd@rustbot