Skip to content

Enable -Znext-solver on nightly by default - #160619

Open
Kivooeo wants to merge 4 commits into
rust-lang:mainfrom
Kivooeo:enable-next-solver
Open

Enable -Znext-solver on nightly by default#160619
Kivooeo wants to merge 4 commits into
rust-lang:mainfrom
Kivooeo:enable-next-solver

Conversation

@Kivooeo

@Kivooeo Kivooeo commented Aug 6, 2026

Copy link
Copy Markdown
Member

View all comments

Implementation of rust-lang/compiler-team#1014 cc rust-lang/blog.rust-lang.org#1896 #160895

This enables -Znext-solver=globally by default in nightly, but keeps -Znext-solver=coherence for tests

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 6, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from 58af33d to 0460872 Compare August 6, 2026 10:21
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from 0460872 to 0ea6562 Compare August 6, 2026 11:35
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from 0ea6562 to 5742bfa Compare August 6, 2026 11:47
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from 5742bfa to 71b11fe Compare August 6, 2026 13:00
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch 2 times, most recently from d68c99e to 957226b Compare August 6, 2026 14:34
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from 957226b to db02309 Compare August 6, 2026 15:38
@Kivooeo Kivooeo closed this Aug 6, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 6, 2026
@Kivooeo Kivooeo reopened this Aug 6, 2026
@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 6, 2026
@Kivooeo Kivooeo closed this Aug 6, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 6, 2026
@Kivooeo Kivooeo reopened this Aug 6, 2026
@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 6, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from db02309 to d5d6c07 Compare August 7, 2026 19:21
@rust-log-analyzer

This comment has been minimized.

@rust-cloud-vms
rust-cloud-vms Bot force-pushed the enable-next-solver branch from d5d6c07 to 1acf8a5 Compare August 8, 2026 09:09
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 20, 2026
Update the `rustc-perf` submodule

To bring in rust-lang/rustc-perf#2537, so that we unblock rust-lang#160619.

r? lcnr
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 20, 2026
Update the `rustc-perf` submodule

To bring in rust-lang/rustc-perf#2537, so that we unblock rust-lang#160619.

r? lcnr
rust-bors Bot pushed a commit that referenced this pull request Aug 20, 2026
Rollup merge of #161344 - Kobzol:update-rustc-perf, r=lqd

Update the `rustc-perf` submodule

To bring in rust-lang/rustc-perf#2537, so that we unblock #160619.

r? lcnr
@lcnr

lcnr commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

@bors r+ rollup=never

@rust-bors

rust-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1311d86 has been approved by lcnr

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 20, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 20, 2026
Enable `-Znext-solver` on nightly by default



Implementation of rust-lang/compiler-team#1014 cc rust-lang/blog.rust-lang.org#1896 #160895

This enables `-Znext-solver=globally` by default in nightly, but keeps `-Znext-solver=coherence` for tests
@rust-log-analyzer

This comment has been minimized.

@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 20, 2026
@rust-bors

rust-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 13afda5 failed: CI. Failed job:

@Kobzol

Kobzol commented Aug 21, 2026

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 21, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 21, 2026
Enable `-Znext-solver` on nightly by default
@Kobzol

Kobzol commented Aug 21, 2026

Copy link
Copy Markdown
Member

Heh, I noticed the failing test while reading the code and was thinking "huh, how does this work?". And now I see it doesn't 😆 It either has to be skipped on nightly, or perhaps I'd just replace it with a check that compares the parsed value to the Default impl of the next solver config.

@rust-bors

rust-bors Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 97e0817 (97e0817e27d8579734e091d063da910298d6891d)
Base parent: 0cfa1c4 (0cfa1c40c6a6165adbcdb2bc5f973a9d7389186e)

@rust-timer

This comment has been minimized.

@@ -1028,6 +1020,18 @@ pub struct NextSolverConfig {
pub globally: bool = false,
}

@lcnr lcnr Aug 21, 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.

not part of this PR, but we allow coherence: bool = true even without derive(Default) that's surprising to me 🤔

View changes since the review

pull Bot pushed a commit to LeeeeeeM/miri that referenced this pull request Aug 21, 2026
Update the `rustc-perf` submodule

To bring in rust-lang/rustc-perf#2537, so that we unblock rust-lang/rust#160619.

r? lcnr
@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 21, 2026
@lcnr

lcnr commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

enabling the tracked check if the next-solver is enabled in 72c9724

I guess let's wait for perf before reapproving :>

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (97e0817): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

Next, please: If you can, justify the regressions found in this try perf run in writing along with @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

@bors rollup=never rustc-perf
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.6% [0.1%, 1.6%] 119
Regressions ❌
(secondary)
0.5% [0.0%, 1.7%] 151
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.5% [-8.1%, -0.3%] 27
All ❌✅ (primary) 0.6% [0.1%, 1.6%] 119

Max RSS (memory usage)

Results (primary 1.3%, secondary -0.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
1.3% [0.9%, 3.1%] 8
Regressions ❌
(secondary)
2.0% [0.8%, 3.2%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.0% [-3.1%, -0.6%] 13
All ❌✅ (primary) 1.3% [0.9%, 3.1%] 8

Cycles

Results (primary 2.5%, secondary -0.9%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.5% [2.5%, 2.5%] 1
Regressions ❌
(secondary)
6.9% [5.0%, 8.9%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.1% [-4.1%, -2.3%] 7
All ❌✅ (primary) 2.5% [2.5%, 2.5%] 1

Binary size

Results (primary -0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.0% [-0.0%, -0.0%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.0% [-0.0%, -0.0%] 3

Bootstrap: 456.922s -> 480.397s (5.14%)
Artifact size: 398.89 MiB -> 400.06 MiB (0.29%)

@jdonszelmann

Copy link
Copy Markdown
Contributor

@bors r=lcnr,jdonszelmann,kobzol

@rust-bors

rust-bors Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 72c9724 has been approved by lcnr,jdonszelmann,kobzol

It is now in the queue for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-clippy Relevant to the Clippy team. 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.