-
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 8 pull requests #120877
Rollup of 8 pull requests #120877
Commits on Jan 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9a819ab - Browse repository at this point
Copy the full SHA 9a819abView commit details
Commits on Feb 8, 2024
-
Add documentation on
str::starts_with
Add documentation about a current footgun of `str::starts_with`
Configuration menu - View commit details
-
Copy full SHA for f0c6f5a - Browse repository at this point
Copy the full SHA f0c6f5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ff1994 - Browse repository at this point
Copy the full SHA 8ff1994View commit details
Commits on Feb 9, 2024
-
Clarify that atomic and regular integers can differ in alignment
The documentation for atomic integers says that they have the "same in-memory representation" as their underlying integers. This might be misconstrued as implying that they have the same layout. Therefore, clarify that atomic integers' alignment is equal to their size.
Configuration menu - View commit details
-
Copy full SHA for c94bbb2 - Browse repository at this point
Copy the full SHA c94bbb2View commit details -
Loosen an assertion to account for stashed errors.
The meaning of this assertion changed in rust-lang#120828 when the meaning of `has_errors` changed to exclude stashed errors. Evidently the new meaning is too restrictive. Fixes rust-lang#120856.
Configuration menu - View commit details
-
Copy full SHA for bb60ded - Browse repository at this point
Copy the full SHA bb60dedView commit details
Commits on Feb 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3d4a9f5 - Browse repository at this point
Copy the full SHA 3d4a9f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf1096e - Browse repository at this point
Copy the full SHA cf1096eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 973bbfb - Browse repository at this point
Copy the full SHA 973bbfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7263d7 - Browse repository at this point
Copy the full SHA d7263d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fde695a - Browse repository at this point
Copy the full SHA fde695aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f5af9 - Browse repository at this point
Copy the full SHA e6f5af9View commit details -
Allow restricted trait impls in macros with
min_specialization
Implementing traits marked with `#[rustc_specialization_trait]` normally requires (min-)specialization to be enabled for the enclosing crate. With this change, that permission can also be granted by an `allow_internal_unstable` attribute on the macro that generates the impl.
Configuration menu - View commit details
-
Copy full SHA for 7b73e4f - Browse repository at this point
Copy the full SHA 7b73e4fView commit details -
Remove unnecessary
min_specialization
after bootstrapThese crates all needed specialization for `newtype_index!`, which will no longer be necessary when the current nightly eventually becomes the next bootstrap compiler.
Configuration menu - View commit details
-
Copy full SHA for a2479a4 - Browse repository at this point
Copy the full SHA a2479a4View commit details -
Rollup merge of rust-lang#117614 - RalfJung:static-mut-refs, r=davidt…
…wco,oli-obk static mut: allow mutable reference to arbitrary types, not just slices and arrays For historical reasons, we allow this: ```rust static mut ARRAY: &'static mut [isize] = &mut [1]; ``` However, we do not allow this: ```rust static mut INT: &'static mut isize = &mut 1; ``` I think that's terribly inconsistent. I don't care much for `static mut`, but we have to keep it around for backwards compatibility and so we have to keep supporting it properly in the compiler. In recent refactors of how we deal with mutability of data in `static` and `const`, I almost made a fatal mistake since I tested `static mut INT: &'static mut isize = &mut 1` and concluded that we don't allow such `'static` mutable references even inside `static mut`. After all, nobody would expect this to be allowed only for arrays and slices, right?!?? So for the sake of our own sanity, and of whoever else reverse engineers these rules in the future to understand what the Rust compiler accepts or does not accept, I propose that we accept this for all types, not just arrays and slices.
Configuration menu - View commit details
-
Copy full SHA for 0b7f0ff - Browse repository at this point
Copy the full SHA 0b7f0ffView commit details -
Rollup merge of rust-lang#120719 - compiler-errors:no-dyn-atb, r=lcnr
Remove support for `associated_type_bound` nested in `dyn` types These necessarily desugar to `impl Trait`, which is inconsistent with the `associated_type_bound` feature after rust-lang#120584. This PR keeps the `is_in_dyn_type` hack, which kind of makes me sad. Ideally, we'd be validating that no object types have associated type bounds somewhere else. Unfortunately, we can't do this later during astconv (i think?), nor can we do it earlier during ast validation (i think?) because of the feature gating of ATB being a *warning* rather than an *error*. Let me know if you have thoughts about this. r? lcnr
Configuration menu - View commit details
-
Copy full SHA for e11e444 - Browse repository at this point
Copy the full SHA e11e444View commit details -
Rollup merge of rust-lang#120764 - Alfriadox:master, r=m-ou-se
Add documentation on `str::starts_with` Add documentation about a current footgun of `str::starts_with`
Configuration menu - View commit details
-
Copy full SHA for 2eda0c7 - Browse repository at this point
Copy the full SHA 2eda0c7View commit details -
Rollup merge of rust-lang#120823 - LegionMammal978:clarify-atomic-ali…
…gn, r=RalfJung Clarify that atomic and regular integers can differ in alignment The documentation for atomic integers says that they have the "same in-memory representation" as their underlying integers. This might be misconstrued as implying that they have the same layout. Therefore, clarify that atomic integers' alignment is equal to their size.
Configuration menu - View commit details
-
Copy full SHA for 8354470 - Browse repository at this point
Copy the full SHA 8354470View commit details -
Rollup merge of rust-lang#120859 - nnethercote:fix-120856, r=oli-obk
Loosen an assertion to account for stashed errors. The meaning of this assertion changed in rust-lang#120828 when the meaning of `has_errors` changed to exclude stashed errors. Evidently the new meaning is too restrictive. Fixes rust-lang#120856. r? ```@oli-obk```
Configuration menu - View commit details
-
Copy full SHA for 2dbc9f5 - Browse repository at this point
Copy the full SHA 2dbc9f5View commit details -
Rollup merge of rust-lang#120865 - saethlin:missing-o-files, r=nnethe…
…rcote Turn the "no saved object file in work product" ICE into a translatable fatal error I don't know if it's fair to say this fixes rust-lang#120854 but it surely makes the error reporting better and should encourage people with good instincts like ```@CinchBlue.```
Configuration menu - View commit details
-
Copy full SHA for 9a8958f - Browse repository at this point
Copy the full SHA 9a8958fView commit details -
Rollup merge of rust-lang#120866 - Zalathar:no-min-spec, r=compiler-e…
…rrors Remove unnecessary `#![feature(min_specialization)]` As of rust-lang#119963 and rust-lang#120676, we can now rely on `newtype_index!` having `#[allow_internal_unstable(min_specialization)]`, so there are a few compiler crates that no longer need to include min-spec in their own crate features. --- Some of the expansions of `newtype_index!` still appear to require min-spec in the crate features. I think this is because `#[orderable]` causes the expansion to include an implementation of `TrustedStep`, which is flagged with `#[rustc_specialization_trait]`, and for whatever reason that isn't permitted by allow-internal-unstable. So this PR only touches the crates where that isn't the case.
Configuration menu - View commit details
-
Copy full SHA for ed3b049 - Browse repository at this point
Copy the full SHA ed3b049View commit details -
Rollup merge of rust-lang#120870 - Zalathar:allow-min-spec, r=oli-obk
Allow restricted trait impls under `#[allow_internal_unstable(min_specialization)]` This is a follow-up to rust-lang#119963 and a companion to rust-lang#120866, though it can land independently from the latter. --- We have several compiler crates that only enable `#[feature(min_specialization)]` because it is required by their expansions of `newtype_index!`, in order to implement traits marked with `#[rustc_specialization_trait]`. This PR allows those traits to be implemented internally by macros with `#[allow_internal_unstable(min_specialization)]`, without needing specialization to be enabled in the enclosing crate.
Configuration menu - View commit details
-
Copy full SHA for 5591336 - Browse repository at this point
Copy the full SHA 5591336View commit details