-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Rollup of 7 pull requests #111311
Rollup of 7 pull requests #111311
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 <[email protected]>
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:
transmute
s incore
#110094 (clean uptransmute
s incore
)the
where it felt right to do so) #111293 (rustc --explain E0726 - grammar fixing (it's => its + add athe
where it felt right to do so))mem::forget
andmem::replace
inOption::get_or_insert_with
. #111301 (Remove calls tomem::forget
andmem::replace
inOption::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