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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 25, 2026
@rustbot rustbot 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
Member Author

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

Comment thread compiler/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-bors Bot 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-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 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
rust-bors Bot 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
rust-bors Bot 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 Bot 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 Bot 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-bors Bot merged commit e20331b into rust-lang:main Aug 31, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Aug 31, 2026
rust-bors Bot 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
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.

3 participants