Skip to content

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Jun 8, 2025

The mir-opt test suite currently defaults all tests in it to -Zmir-opt-level=4, so if a test is trying to test MIR building not optimizations and it is in that directory, it must override the default mir-opt-level.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 8, 2025
@bors
Copy link
Collaborator

bors commented Aug 23, 2025

☔ The latest upstream changes (presumably #145773) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 23, 2025
@cjgillot
Copy link
Contributor

Actually, should this whole test suite run in mir-opt-level=0 unless we specify otherwise? Tests for specific mir passes already do that. Precodegen also specify a level.

@saethlin
Copy link
Member Author

It is often surprising that the mir-opt test suite defaults everything to opt-level 4. I'd support such a change.

@cjgillot
Copy link
Contributor

On this PR in particular, if you still want to push it, r=me after a rebase

@saethlin saethlin force-pushed the mir-building-tests branch from d8954d0 to 22cdf21 Compare August 27, 2025 03:42
@saethlin saethlin marked this pull request as ready for review August 27, 2025 03:44
@rustbot
Copy link
Collaborator

rustbot commented Aug 27, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 27, 2025
@saethlin
Copy link
Member Author

r? cjgillot

Gonna wait for CI to pass

@rustbot rustbot assigned cjgillot and unassigned Mark-Simulacrum Aug 27, 2025
@saethlin
Copy link
Member Author

@bors r=cjgillot

@bors
Copy link
Collaborator

bors commented Aug 27, 2025

📌 Commit 22cdf21 has been approved by cjgillot

It is now in the queue for this repository.

@bors bors 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 27, 2025
bors added a commit that referenced this pull request Aug 27, 2025
Rollup of 6 pull requests

Successful merges:

 - #142215 (Use -Zmir-opt-level=0 in tests for MIR building)
 - #143341 (Mention that casting to *const () is a way to roundtrip with from_raw_parts)
 - #145078 (Fix wrong cache line size of riscv64)
 - #145290 (Improve std::fs::read_dir docs)
 - #145335 (Move WTF-8 code from std into core and alloc)
 - #145904 (Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e420e45 into rust-lang:master Aug 27, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 27, 2025
rust-timer added a commit that referenced this pull request Aug 27, 2025
Rollup merge of #142215 - saethlin:mir-building-tests, r=cjgillot

Use -Zmir-opt-level=0 in tests for MIR building

The mir-opt test suite currently defaults all tests in it to `-Zmir-opt-level=4`, so if a test is trying to test MIR _building_ not optimizations and it is in that directory, it _must_ override the default mir-opt-level.
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.

5 participants