-
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 8 pull requests #90984
Rollup of 8 pull requests #90984
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6d2f8af - Browse repository at this point
Copy the full SHA 6d2f8afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 958de5a - Browse repository at this point
Copy the full SHA 958de5aView commit details
Commits on Nov 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c15b55a - Browse repository at this point
Copy the full SHA c15b55aView commit details
Commits on Nov 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 130b9e9 - Browse repository at this point
Copy the full SHA 130b9e9View commit details -
Fix span for non-satisfied trivial trait bounds
The spans for "trait bound not satisfied" errors in trivial trait bounds referenced the entire item (fn, impl, struct) before. Now they only reference the obligation itself (`String: Copy`) Address rust-lang#90869
Configuration menu - View commit details
-
Copy full SHA for 24acf86 - Browse repository at this point
Copy the full SHA 24acf86View commit details -
Configuration menu - View commit details
-
Copy full SHA for f980f81 - Browse repository at this point
Copy the full SHA f980f81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50ec47a - Browse repository at this point
Copy the full SHA 50ec47aView commit details
Commits on Nov 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 62acf7f - Browse repository at this point
Copy the full SHA 62acf7fView commit details
Commits on Nov 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for de05d3e - Browse repository at this point
Copy the full SHA de05d3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52199c9 - Browse repository at this point
Copy the full SHA 52199c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17b5e2d - Browse repository at this point
Copy the full SHA 17b5e2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09e59c2 - Browse repository at this point
Copy the full SHA 09e59c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for eee29b0 - Browse repository at this point
Copy the full SHA eee29b0View commit details -
Update compiler/rustc_passes/src/check_attr.rs
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
Configuration menu - View commit details
-
Copy full SHA for 83ce771 - Browse repository at this point
Copy the full SHA 83ce771View commit details
Commits on Nov 17, 2021
-
Rollup merge of rust-lang#89610 - guswynn:must_use_future, r=wesleywiser
warn on must_use use on async fn's As referenced in rust-lang#78149 This only works on `async` fn's for now, I can also look into if I can get `Box<dyn Future>` and `impl Future` working at this level (hir)
Configuration menu - View commit details
-
Copy full SHA for 0734282 - Browse repository at this point
Copy the full SHA 0734282View commit details -
Rollup merge of rust-lang#90667 - rukai:improve_static_lifetime_diagn…
…ostics, r=estebank Improve diagnostics when a static lifetime is expected Makes progress towards rust-lang#90600 The diagnostics here were previously entirely removed due to giving a misleading suggestion but if we instead provide an informative label in that same location it should better help the user understand the situation. I included the example from the issue as it demonstrates an area where the diagnostics are still lacking. Happy to remove that if its just adding noise atm.
Configuration menu - View commit details
-
Copy full SHA for d7b8688 - Browse repository at this point
Copy the full SHA d7b8688View commit details -
Rollup merge of rust-lang#90687 - jhpratt:const_panic, r=oli-obk
Permit const panics in stable const contexts in stdlib Without this change, it is not possible to use `panic!` and similar (including `assert!`) in stable const contexts inside of stdlib. See rust-lang#89542 for a real-world case that currently fails for this reason. This does _not_ affect any user code. For example, this snippet currently fails to compile: ```rust #[stable(feature = "foo", since = "1.0.0")] #[rustc_const_stable(feature = "foo", since = "1.0.0")] const fn foo() { assert!(false); assert!(false, "foo"); } ``` With the addition of `#[rustc_const_unstable]` to `core::panicking::panic`, the error no longer occurs. This snippet has been added verbatim in this PR as a UI test. To avoid needing to add `#![feature(core_panic)]` to libcore, the two instances of direct calls to `core::panicking::panic` have been switched to use the `panic!` macro. I am requesting prioritization because this is holding up other stabilizations such as rust-lang#89542 (which is otherwise ready to merge and succeeds with this change)
Configuration menu - View commit details
-
Copy full SHA for ec84633 - Browse repository at this point
Copy the full SHA ec84633View commit details -
Rollup merge of rust-lang#90772 - GuillaumeGomez:vec-retain-mut, r=jo…
…shtriplett Add Vec::retain_mut This is to continue the discussion started in rust-lang#83218. Original comment was: > Take 2 of rust-lang#34265, since I needed this today. The reason I think why we should add `retain_mut` is for coherency and for discoverability. For example we have `chunks` and `chunks_mut` or `get` and `get_mut` or `iter` and `iter_mut`, etc. When looking for mutable `retain`, I would expect `retain_mut` to exist. It took me a while to find out about `drain_filter`. So even if it provides an API close to `drain_filter`, just for the discoverability, I think it's worth it. cc ``````@m-ou-se`````` ``````@jonas-schievink`````` ``````@Mark-Simulacrum``````
Configuration menu - View commit details
-
Copy full SHA for 904dba5 - Browse repository at this point
Copy the full SHA 904dba5View commit details -
Rollup merge of rust-lang#90861 - 5225225:nonprinting-char, r=davidtwco
Print escaped string if char literal has multiple characters, but only one printable character Fixes rust-lang#90857 I'm not sure about the error message here, it could get rather long and *maybe* using the names of characters would be better? That wouldn't help the length any, though.
Configuration menu - View commit details
-
Copy full SHA for ab958a7 - Browse repository at this point
Copy the full SHA ab958a7View commit details -
Rollup merge of rust-lang#90884 - Nilstrieb:fix-span-trivial-trait-bo…
…und, r=estebank Fix span for non-satisfied trivial trait bounds The spans for "trait bound not satisfied" errors in trivial trait bounds referenced the entire item (fn, impl, struct) before. Now they only reference the obligation itself (`String: Copy`) Address rust-lang#90869
Configuration menu - View commit details
-
Copy full SHA for 23ad7a7 - Browse repository at this point
Copy the full SHA 23ad7a7View commit details -
Rollup merge of rust-lang#90900 - andjo403:removeLlvm12Check, r=nikic
Remove workaround for the forward progress handling in LLVM this workaround was only needed for LLVM < 12 and the minimum LLVM version was updated to 12 in rust-lang#90175
Configuration menu - View commit details
-
Copy full SHA for fb660de - Browse repository at this point
Copy the full SHA fb660deView commit details -
Rollup merge of rust-lang#90901 - rukai:improve_manuallydrop_help, r=…
…estebank Improve ManuallyDrop suggestion closes rust-lang#90585 * Fixes the recommended change to use ManuallyDrop as per the issue * Changes the note to a help * improves the span so it only points at the type.
Configuration menu - View commit details
-
Copy full SHA for 469faa2 - Browse repository at this point
Copy the full SHA 469faa2View commit details