Conversation
When encountering `match Some(42) { Some(x) => x, None => "" };`, output
```
error[E0308]: `match` arms have incompatible types
--> f53.rs:2:52
|
2 | let _ = match Some(42) { Some(x) => x, None => "" };
| -------------- - ^^ expected integer, found `&str`
| | |
| | this is found to be of type `{integer}`
| `match` arms have incompatible types
```
Test leaking of BinaryHeap Drain iterators Add test cases about forgetting the `BinaryHeap::Drain` iterator, and slightly fortifies some other test cases. Consists of separate commits that I don't think are relevant on their own (but I'll happily turn these into more PRs if desired).
…piler-errors Remove `iter::Empty` hack `iter::Empty` uses a newtype to work around `#![feature(const_fn_fn_ptr_basics)]`, which has been stable since 1.61.0.
…-errors Fix `unused_must_use` warning for `Box::from_raw`
…tch-implementation, r=compiler-errors Fix backoff doc to match implementation The commit 8dddb22 in the crossbeam-channel PR (rust-lang#93563) changed the backoff strategy to be quadratic instead of exponential. This updates the doc to prevent confusion.
…iler-errors
Account for `match` expr in single line
When encountering `match Some(42) { Some(x) => x, None => "" };`, output
```
error[E0308]: `match` arms have incompatible types
--> f53.rs:2:52
|
2 | let _ = match Some(42) { Some(x) => x, None => "" };
| -------------- - ^^ expected integer, found `&str`
| | |
| | this is found to be of type `{integer}`
| `match` arms have incompatible types
```
Implement allow-by-default `multiple_supertrait_upcastable` lint The lint detects when an object-safe trait has multiple supertraits. Enabled in libcore and liballoc as they are low-level enough that many embedded programs will use them. r? `@nikomatsakis`
…trieb Fix `core::any` docs Thanks to ``@pbevin`` in rust-lang#106154 Closes rust-lang#106154 ``@rustbot`` labels +A-docs
…mpiler-errors Emit fewer errors on invalid `#[repr(transparent)]` on `enum` Fix rust-lang#68420.
Remove some totally duplicated files in `rustc_infer` I have no idea why or how I duplicated these files from `compiler/rustc_infer/src/infer/error_reporting/note.rs`, but I did by accident, and nothing caught it 🤦
|
@bors r+ rollup=never p=9 |
|
☀️ Test successful - checks-actions |
|
📌 Perf builds for each rolled up PR: previous master: 9b889e53e7 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
|
Finished benchmarking commit (6a20f7d): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@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.
|
Successful merges:
iter::Emptyhack #103945 (Removeiter::Emptyhack)unused_must_usewarning forBox::from_raw#104024 (Fixunused_must_usewarning forBox::from_raw)matchexpr in single line #105347 (Account formatchexpr in single line)multiple_supertrait_upcastablelint #105484 (Implement allow-by-defaultmultiple_supertrait_upcastablelint)core::anydocs #106184 (Fixcore::anydocs)#[repr(transparent)]onenum#106201 (Emit fewer errors on invalid#[repr(transparent)]onenum)rustc_infer#106205 (Remove some totally duplicated files inrustc_infer)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup