-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #105660
Rollup of 7 pull requests #105660
Commits on Dec 4, 2022
-
Always evaluate vecs of subdiagnostics eagerly
mejrs committedDec 4, 2022 Configuration menu - View commit details
-
Copy full SHA for a7838d8 - Browse repository at this point
Copy the full SHA a7838d8View commit details
Commits on Dec 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e40dd9e - Browse repository at this point
Copy the full SHA e40dd9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79aa4a1 - Browse repository at this point
Copy the full SHA 79aa4a1View commit details
Commits on Dec 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0c0fb22 - Browse repository at this point
Copy the full SHA 0c0fb22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6275b04 - Browse repository at this point
Copy the full SHA 6275b04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c0983c - Browse repository at this point
Copy the full SHA 3c0983cView commit details
Commits on Dec 9, 2022
-
Illegal sized bounds: only suggest mutability change if needed
In a scenario like ``` struct Type; pub trait Trait { fn function(&mut self) where Self: Sized; } impl Trait for Type { fn function(&mut self) {} } fn main() { (&mut Type as &mut dyn Trait).function(); } ``` the problem is Sized, not the mutability of self. Thus don't emit the "you need &T instead of &mut T" note, or the other way around, as all it does is just invert the mutability of whatever was supplied. Fixes rust-lang#103622.
Configuration menu - View commit details
-
Copy full SHA for 40ba1c9 - Browse repository at this point
Copy the full SHA 40ba1c9View commit details
Commits on Dec 13, 2022
-
Refine when invalid prefix case error arises
Fix cases where the "invalid base prefix for number literal" error arises with suffixes that look erroneously capitalized but which are in fact invalid.
Configuration menu - View commit details
-
Copy full SHA for 52a9280 - Browse repository at this point
Copy the full SHA 52a9280View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2315012 - Browse repository at this point
Copy the full SHA 2315012View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3522d48 - Browse repository at this point
Copy the full SHA 3522d48View commit details -
Rollup merge of rust-lang#105161 - cassaundra:numeric-literal-error, …
…r=nnethercote Refine when invalid prefix case error arises Fix cases where the "invalid base prefix for number literal" error arises with suffixes that look erroneously capitalized but which are actually invalid.
Configuration menu - View commit details
-
Copy full SHA for e3f6464 - Browse repository at this point
Copy the full SHA e3f6464View commit details -
Rollup merge of rust-lang#105233 - mejrs:always_eager, r=estebank
Always evaluate vecs of subdiagnostics eagerly See https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20lists!/near/310186705 for context
Configuration menu - View commit details
-
Copy full SHA for 33b7a64 - Browse repository at this point
Copy the full SHA 33b7a64View commit details -
Rollup merge of rust-lang#105285 - compiler-errors:conflicting-param-…
…env-2, r=estebank Highlight conflicting param-env candidates, again Un-reverts rust-lang#98794 (i.e. reverts rust-lang#99290). The previous time I attempted to land this PR, it was because of an incremental issue (rust-lang#99233). The repro instructions in the issue is no longer manifest the ICE -- I think it's because this ambiguity code was refactored (I think by ``@lcnr)`` to no longer store the ambiguities in the fulfillment error, but instead recompute them on the fly. The main motivation for trying to re-land this is that it fixes rust-lang#105131 by highlighting the root-cause of the issue, which is conflicting param-env candidates: ``` error[E0283]: type annotations needed: cannot satisfy `Self: Gen<'source>` | note: multiple `impl`s or `where` clauses satisfying `Self: Gen<'source>` found --> $DIR/conflicting-bounds.rs:3:1 | LL | pub trait Gen<'source> { | ^^^^^^^^^^^^^^^^^^^^^^ ... LL | Self: for<'s> Gen<'s, Output = T>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0283`. ``` Fixes rust-lang#105131. Fixes (again) rust-lang#98786
Configuration menu - View commit details
-
Copy full SHA for 79ffacb - Browse repository at this point
Copy the full SHA 79ffacbView commit details -
Rollup merge of rust-lang#105464 - nbdd0121:hir, r=compiler-errors
Support #[track_caller] on async closures Follow up on rust-lang#105180 r? ``@compiler-errors`` cc ``@cjgillot``
Configuration menu - View commit details
-
Copy full SHA for 07a7593 - Browse repository at this point
Copy the full SHA 07a7593View commit details -
Rollup merge of rust-lang#105491 - sulami:master, r=compiler-errors
Illegal sized bounds: only suggest mutability change if needed In a scenario like ```rust struct Type; pub trait Trait { fn function(&mut self) where Self: Sized; } impl Trait for Type { fn function(&mut self) {} } fn main() { (&mut Type as &mut dyn Trait).function(); } ``` the problem is Sized, not the mutability of self. Thus don't emit the "you need &T instead of &mut T" note, or the other way around, as all it does is just invert the mutability of whatever was supplied. Fixes rust-lang#103622.
Configuration menu - View commit details
-
Copy full SHA for 9d75865 - Browse repository at this point
Copy the full SHA 9d75865View commit details -
Rollup merge of rust-lang#105630 - albertlarsan68:test-92481, r=TaKO8Ki
Add a test for rust-lang#92481 The test was copied ad-hoc from rust-lang#92481, but I can't get the test to pass, because of needing to get twice the same error on the last line of the source. Closes rust-lang#92481
Configuration menu - View commit details
-
Copy full SHA for 61371ba - Browse repository at this point
Copy the full SHA 61371baView commit details -
Rollup merge of rust-lang#105659 - JakobDegen:storage-live-borrow, r=…
…davidtwco Don't require owned data in `MaybeStorageLive` Small improvement that avoids a clone. I don't expect this to have any noticeable perf effects, but better to have it than not to. r? `@tmiasko`
Configuration menu - View commit details
-
Copy full SHA for a52d711 - Browse repository at this point
Copy the full SHA a52d711View commit details