Conversation
Also format the script to keep the code nice.
Prevent `.eh_frame` from being emitted for `-C panic=abort` Since `CheckAlignment` pass is after the `AbortUnwindingCalls` pass, the `UnwindAction::Terminate` inserted in it has no chance to be converted to `UnwindAction::Unreachable` anymore, causing us to emit landing pads that are not necessary. Although these landing pads can themselves be eliminated by LLVM, `.eh_frame` sections are still generated. This causes trouble for Rust-for-Linux project recently. This PR changes it to generate `UnwindAction::Terminate` when we opt for `-Cpanic=unwind`, and `UnwindAction::Unreachable` for `-Cpanic=abort`. `@ojeda`
…, r=compiler-errors `suspicious_double_ref_op`: don't lint on `.borrow()` closes rust-lang#112489
…e, r=oli-obk
Extend `unused_must_use` to cover block exprs
Given code like
```rust
#[must_use]
fn foo() -> i32 {
42
}
fn warns() {
{
foo();
}
}
fn does_not_warn() {
{
foo()
};
}
fn main() {
warns();
does_not_warn();
}
```
### Before This PR
```
warning: unused return value of `foo` that must be used
--> test.rs:8:9
|
8 | foo();
| ^^^^^
|
= note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
|
8 | let _ = foo();
| +++++++
warning: 1 warning emitted
```
### After This PR
```
warning: unused return value of `foo` that must be used
--> test.rs:8:9
|
8 | foo();
| ^^^^^
|
= note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
|
8 | let _ = foo();
| +++++++
warning: unused return value of `foo` that must be used
--> test.rs:14:9
|
14 | foo()
| ^^^^^
|
help: use `let _ = ...` to ignore the resulting value
|
14 | let _ = foo();
| +++++++ +
warning: 2 warnings emitted
```
Fixes rust-lang#104253.
…, r=compiler-errors
tweak suggestion for argument-position `impl ?Sized`
fixes this invalid suggestion:
```text
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
1 - fn foo(_: impl ?Sized) {}
1 + fn foo(_: impl ) {}
|
```
… r=compiler-errors normalize closure output in equate_inputs_and_outputs Fixes rust-lang#112604
…lor-15, r=notriddle Migrate GUI colors test to original CSS color format Follow-up of rust-lang#111459. r? `@notriddle`
…ir, r=tmandry Add support for test tmpdir to fuchsia test runner Also format the script to keep the code nice. This fixes the `tests/ui/std/switch-stdout.rs` test on Fuchsia. r? `@tmandry`
Fix comment for ptr alignment checks in codegen
|
@bors r+ p=8 rollup=never |
|
☀️ Test successful - checks-actions |
|
☀️ Test successful - checks-actions |
|
📌 Perf builds for each rolled up PR: previous master: 114fb86ca0 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
|
Finished benchmarking commit (0252b40): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. 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: 648.365s -> 649.004s (0.10%) |
Successful merges:
.eh_framefrom being emitted for-C panic=abort#112403 (Prevent.eh_framefrom being emitted for-C panic=abort)suspicious_double_ref_op: don't lint on.borrow()#112517 (suspicious_double_ref_op: don't lint on.borrow())unused_must_useto cover block exprs #112529 (Extendunused_must_useto cover block exprs)impl ?Sized#112614 (tweak suggestion for argument-positionimpl ?Sized)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup