-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 9 pull requests #106209
Rollup of 9 pull requests #106209
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::Empty
hack #103945 (Removeiter::Empty
hack)unused_must_use
warning forBox::from_raw
#104024 (Fixunused_must_use
warning forBox::from_raw
)match
expr in single line #105347 (Account formatch
expr in single line)multiple_supertrait_upcastable
lint #105484 (Implement allow-by-defaultmultiple_supertrait_upcastable
lint)core::any
docs #106184 (Fixcore::any
docs)#[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