Skip to content

Conversation

xizheyin
Copy link
Member

@xizheyin xizheyin commented Jul 18, 2025

emit_unless is very unintuitive and confusing. The first impression is as if it will only emit if the parameter is true, without the altnative "delay as a bug".

emit_unless_delay expresses two things:

  1. emit unless the delay parameter is true
  2. either emit immediately or delay as bug

r? @compiler-errors

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 18, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 18, 2025

HIR ty lowering was modified

cc @fmease

@compiler-errors
Copy link
Member

Not totally happy about the name of the function (though I don't have a better suggestion), but I do think that it should be fixed, so I'm fine with the rename for now. Though I also wish that people would read the docs of the functions they're using 😅

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 18, 2025

📌 Commit 4098cc9 has been approved by compiler-errors

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 Jul 18, 2025
@xizheyin
Copy link
Member Author

Wait. #143280 was merge just now. I should rebase on it.

@compiler-errors
Copy link
Member

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 18, 2025
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Jul 18, 2025
@rustbot

This comment has been minimized.

@compiler-errors
Copy link
Member

thanks

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 18, 2025

📌 Commit c58e0bd has been approved by compiler-errors

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 18, 2025
bors added a commit that referenced this pull request Jul 19, 2025
Rollup of 10 pull requests

Successful merges:

 - #141076 (fix Zip unsoundness (again))
 - #142444 (adding run-make test to autodiff)
 - #143704 (Be a bit more careful around exotic cycles in in the inliner)
 - #144073 (Don't test panic=unwind in panic_main.rs on Fuchsia)
 - #144083 (miri sleep tests: increase slack)
 - #144092 (bootstrap: Detect musl hosts)
 - #144098 (Do not lint private-in-public for RPITIT)
 - #144103 (Rename `emit_unless` to `emit_unless_delay`)
 - #144108 (Ignore tests/run-make/link-eh-frame-terminator/rmake.rs when cross-compiling)
 - #144115 (fix outdated comment)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit bd23cd6 into rust-lang:master Jul 19, 2025
11 checks passed
@rustbot rustbot added this to the 1.90.0 milestone Jul 19, 2025
rust-timer added a commit that referenced this pull request Jul 19, 2025
Rollup merge of #144103 - xizheyin:emit-unless, r=compiler-errors

Rename `emit_unless` to `emit_unless_delay`

`emit_unless` is very unintuitive and confusing. The first impression is as if it will only emit if the parameter is true, without the altnative "delay as a bug".

`emit_unless_delay` expresses two things:
1. emit unless the `delay` parameter is true
2. either *emit immediately* or *delay as bug*

r? `@compiler-errors`
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jul 20, 2025
Rollup of 10 pull requests

Successful merges:

 - rust-lang/rust#141076 (fix Zip unsoundness (again))
 - rust-lang/rust#142444 (adding run-make test to autodiff)
 - rust-lang/rust#143704 (Be a bit more careful around exotic cycles in in the inliner)
 - rust-lang/rust#144073 (Don't test panic=unwind in panic_main.rs on Fuchsia)
 - rust-lang/rust#144083 (miri sleep tests: increase slack)
 - rust-lang/rust#144092 (bootstrap: Detect musl hosts)
 - rust-lang/rust#144098 (Do not lint private-in-public for RPITIT)
 - rust-lang/rust#144103 (Rename `emit_unless` to `emit_unless_delay`)
 - rust-lang/rust#144108 (Ignore tests/run-make/link-eh-frame-terminator/rmake.rs when cross-compiling)
 - rust-lang/rust#144115 (fix outdated comment)

r? `@ghost`
`@rustbot` modify labels: rollup
@xizheyin xizheyin deleted the emit-unless branch July 21, 2025 14:20
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Jul 21, 2025
…rrors

Rename `emit_unless` to `emit_unless_delay`

`emit_unless` is very unintuitive and confusing. The first impression is as if it will only emit if the parameter is true, without the altnative "delay as a bug".

`emit_unless_delay` expresses two things:
1. emit unless the `delay` parameter is true
2. either *emit immediately* or *delay as bug*

r? `@compiler-errors`
Muscraft pushed a commit to Muscraft/rust that referenced this pull request Jul 21, 2025
…iaskrgr

Rollup of 10 pull requests

Successful merges:

 - rust-lang#141076 (fix Zip unsoundness (again))
 - rust-lang#142444 (adding run-make test to autodiff)
 - rust-lang#143704 (Be a bit more careful around exotic cycles in in the inliner)
 - rust-lang#144073 (Don't test panic=unwind in panic_main.rs on Fuchsia)
 - rust-lang#144083 (miri sleep tests: increase slack)
 - rust-lang#144092 (bootstrap: Detect musl hosts)
 - rust-lang#144098 (Do not lint private-in-public for RPITIT)
 - rust-lang#144103 (Rename `emit_unless` to `emit_unless_delay`)
 - rust-lang#144108 (Ignore tests/run-make/link-eh-frame-terminator/rmake.rs when cross-compiling)
 - rust-lang#144115 (fix outdated comment)

r? `@ghost`
`@rustbot` modify labels: rollup
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Jul 29, 2025
…iaskrgr

Rollup of 10 pull requests

Successful merges:

 - rust-lang#141076 (fix Zip unsoundness (again))
 - rust-lang#142444 (adding run-make test to autodiff)
 - rust-lang#143704 (Be a bit more careful around exotic cycles in in the inliner)
 - rust-lang#144073 (Don't test panic=unwind in panic_main.rs on Fuchsia)
 - rust-lang#144083 (miri sleep tests: increase slack)
 - rust-lang#144092 (bootstrap: Detect musl hosts)
 - rust-lang#144098 (Do not lint private-in-public for RPITIT)
 - rust-lang#144103 (Rename `emit_unless` to `emit_unless_delay`)
 - rust-lang#144108 (Ignore tests/run-make/link-eh-frame-terminator/rmake.rs when cross-compiling)
 - rust-lang#144115 (fix outdated comment)

r? `@ghost`
`@rustbot` modify labels: rollup
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.

4 participants