Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename inhibit_union_abi_opt() to inhibits_union_abi_opt() #124463

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

gurry
Copy link
Contributor

@gurry gurry commented Apr 28, 2024

inihibit seems to suggest that this function will inhibit optimizations whereas inhibits correctly indicates that it will merely check that. With inhibits if conditions read more naturally e.g.:

if repr.inhibits_union_abi_opt() {
}

The present tense makes it read more naturally at use site i.e.
"this repr _inhibits_ optimizations"
@rustbot
Copy link
Collaborator

rustbot commented Apr 28, 2024

r? @TaKO8Ki

rustbot has assigned @TaKO8Ki.
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 28, 2024
@fmease fmease changed the title Rename inihibit_union_abi_opt() to inihibits_union_abi_opt() Rename inhibit_union_abi_opt() to inhibits_union_abi_opt() Apr 28, 2024
@TaKO8Ki
Copy link
Member

TaKO8Ki commented Apr 28, 2024

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 28, 2024

📌 Commit 4aafec1 has been approved by TaKO8Ki

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 Apr 28, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 28, 2024
…iaskrgr

Rollup of 2 pull requests

Successful merges:

 - rust-lang#124444 (Record certainty of `evaluate_added_goals_and_make_canonical_response` call in candidate)
 - rust-lang#124463 (Rename `inhibit_union_abi_opt()` to `inhibits_union_abi_opt()`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7ab3997 into rust-lang:master Apr 28, 2024
10 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 28, 2024
Rollup merge of rust-lang#124463 - gurry:rename-func, r=TaKO8Ki

Rename `inhibit_union_abi_opt()` to `inhibits_union_abi_opt()`

`inihibit` seems to suggest that this function will inhibit optimizations whereas `inhibits` correctly indicates that it will merely _check_ that. With `inhibits` if conditions read more naturally e.g.:

```rust
if repr.inhibits_union_abi_opt() {
}
```
@rustbot rustbot added this to the 1.80.0 milestone Apr 28, 2024
@gurry gurry deleted the rename-func branch April 29, 2024 01:36
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.

4 participants