Conversation
… bitcast w/ pointercast.
Remove bitcasts in OperandRef::extract_field; only pointercasts should be needed.
…re it felt right to do so)
The lint that suggests `loop {}` instead of `while true {}` has functionality to 'pierce' parenthesis
in cases like `while (true) {}`. In these cases, the emitted span only went to the hi of the `true`
itself, not spanning the entire loop condition.
Before:
```
warning: denote infinite loops with `loop { ... }`
--> /tmp/foobar.rs:2:5
|
2 | while ((((((true)))))) {}
| ^^^^^^^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
```
After:
```
warning: denote infinite loops with `loop { ... }`
--> /tmp/foobar.rs:2:5
|
2 | while ((((((true)))))) {}
| ^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
```
and `mem::replace` in `Option::get_or_insert_with`.
add test and bless
Co-authored-by: Michael Goulet <michael@errs.io>
Operand::extract_field: only cast llval if it's a pointer and replace bitcast w/ pointercast. Fixes rust-lang#105439. Also cc `@erikdesjardins,` looks like another place to cleanup as part of rust-lang#105545
clean up `transmute`s in `core` * Use `transmute_unchecked` instead of `transmute_copy` for `MaybeUninit::transpose`. * Use manual transmute for `Option<Ordering>` → `i8`.
…henkov added TraitAlias to check_item() for missing_docs As in issue rust-lang#111025 the `missing_docs` was not being triggered for trait aliases. I added `TraitAlias` to the pattern match for check_item(), and the lint seems to be behaving appropriately
rustc --explain E0726 - grammar fixing (it's => its + add a `the` where it felt right to do so) Very small fix
…tion, r=compiler-errors
Emit while_true lint spanning the entire loop condition
The lint that suggests `loop {}` instead of `while true {}` has functionality to 'pierce' parenthesis in cases like `while (true) {}`. In these cases, the emitted span only went to the hi of the `true` itself, not spanning the entire loop condition.
Before:
```
warning: denote infinite loops with `loop { ... }`
--> /tmp/foobar.rs:2:5
|
2 | while ((((((true)))))) {}
| ^^^^^^^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
```
After:
```
warning: denote infinite loops with `loop { ... }`
--> /tmp/foobar.rs:2:5
|
2 | while ((((((true)))))) {}
| ^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
```
This is especially a problem for rustfix.
…methods, r=scottmcm Remove calls to `mem::forget` and `mem::replace` in `Option::get_or_insert_with`. This removes the unneeded calls to `mem::forget` and `mem::replace` in `Option::get_or_insert_with`.
…nTitor update Rust Unstable Book docs for `--extern force` Options for `--extern` are documented in [The Rust Unstable Book](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/extern-options.html). rust-lang#109421 added a new `force` option and this PR updates the documentation accordingly.
|
@bors r+ rollup=never p=7 |
|
☀️ Test successful - checks-actions |
|
📌 Perf builds for each rolled up PR: previous master: 70a779cb7d In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
|
Finished benchmarking commit (8cc75b5): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 653.509s -> 654.11s (0.09%) |
Successful merges:
transmutes incore#110094 (clean uptransmutes incore)thewhere it felt right to do so) #111293 (rustc --explain E0726 - grammar fixing (it's => its + add athewhere it felt right to do so))mem::forgetandmem::replaceinOption::get_or_insert_with. #111301 (Remove calls tomem::forgetandmem::replaceinOption::get_or_insert_with.)--extern force#111303 (update Rust Unstable Book docs for--extern force)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup