Repository navigation
Automatic Rustup - #5674
Merged
Merged
Automatic Rustup#5674
Conversation
Output type refactors & change analysis query into required_analysis Split from rust-lang/rust#163670 We split OutputType from `config.rs` to `output.rs`, and because we only use full_analysis a single time in each compilation (at least currently), convert it to a regular function, and have `required_analysis` be the query. r? @bjorn3
Introduce `rustc-unicode` crate for centralising Unicode version management Related to rust-lang/rust#165289. I noticed that, while we check that `UNICODE_VERSION` is consistent across several crates, not all are included in the check. This introduces a new `rustc-unicode` crate which handles depending on any `unicode-*` crates, checks their versions are consistent, and re-exports them. `unicode-script` is one such crate that wasn't being checked, so update the version of that crate.
Tidy-sort and use more of `GeneratedAttr` Can be reviewed commit by commit, every commit passes tests r? @mejrs (or someone else)
Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes
Rollup of 4 pull requests Successful merges: - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis) - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management) - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`) - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
…=oli-obk reflection: erase bound regions in function_ptr() Fixes: rust-lang/rust#153176 skip_binder() only removes for<'a, ...> bound region declarations, so regions without declarations were left behind. On nightly, the problem issue mentioned occurs. ICE `Not enough bound vars: '^0 not found in []` on local (with debug assertions) when calling `trait_info_of` Fixed this issue by using `instantiate_bound_regions_with_erased` to erase bound regions on function_ptr() not to leave regions without declarations. r? @oli-obk (since you are the compiler champion of reflection & comptime, and I saw you asked the reviewee to leave a FIXME that I removed on this PR: rust-lang/rust#152173 (comment))
Parser: Clean up `parse_expr_dot_or_call_with` & simplify `parse_expr_prefix` <sub>(No LLM was or will be used by me during the entire creation process of this PR)</sub>
Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int This properly gives `bool` its own ABI, shared only with bool-like `enum`s that have **no explicit repr**. `#[repr($int)]` `enum`s now always use the ABI of `$int`. This PR makes **no language guarantees**, however it will help facilitate such guarantees, if they're decided on: rust-lang/unsafe-code-guidelines#628 Additionally, it seems to give LLVM slightly more information about the tags of certain enums, especially when it comes to variants with different sizes. Previously, bools were identified for the purposes of ABI as being any `u8` primitive that had a valid range of `0..=1`. An enum with `#[repr(u8)]` and with discriminants `0` and `1` would satisfy that condition and be treated like a bool. This is somewhat sketchy, and while no miscompilation has been found, I would not be surprised if the i1 Extension Situation could cause problems on some targets. fixes rust-lang/rust#165026 cc rust-lang/rust#165800. this PR doesn't make that situation any worse, but it is bool ABI related, and this PR adds a commented-out test related to this pre-existing situation.
…, r=lqd Require the next-solver for unsafe binders We're approaching stabilization and trying to implement things for the old solver is a huge pain. r? adwinwhite
Move more rustc lint attributes to lint helpers. Part 2 of implementing rust-lang/rust#160808 (For part 1, see rust-lang/rust#163625)
…pls, r=clarfonthey Unstably implement `StaticAllocator` on fundamental types Unstably implements `StaticAllocator` on `Box` and `Pin`. These types are fundamental, and we use `StaticAllocator` in bounds (specifically `impl From<Box<T, A>> for Pin<Box<T, A>> where A: StaticAllocator`, so adding impls for them would generally be already breaking due to coherence. The impls here are barely not breaking, because all `StaticAllocator` implementors are currently considered local to std, so any code that tries to observe the non-existence of these impls through coherence fails with something like "upstream could add a `StaticAllocator` impl to `Box<Global>`". This isn't really ideal, so to prevent any accidents in the future, this PR adds these `#[unstable_feature_bound]` impls. The impl for `Box` could be added stably, but I'd rather do that in a separate PR, because doing so would require FCP (it would allow `Box::into_pin(Box::new_in(1, Box::new(Global)))`), and I don't want this semver risk at the back of my mind for weeks. The impl for `Pin` is not correct, and only meant as a reservation impl (hence the separate "`internal_`" feature gate). See the `FIXME` comment above it. r? clarfonthey
Rollup of 5 pull requests Successful merges: - rust-lang/rust#164537 (Parser: Clean up `parse_expr_dot_or_call_with` & simplify `parse_expr_prefix`) - rust-lang/rust#165481 (Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int) - rust-lang/rust#166290 (Require the next-solver for unsafe binders) - rust-lang/rust#165865 (Move more rustc lint attributes to lint helpers.) - rust-lang/rust#166221 (Unstably implement `StaticAllocator` on fundamental types)
Share more debuginfo for inlined functions We currently share debuginfo for inlined callees within a function. This PR expands that sharing from "within a function" to "within a CGU". This reduces the size of, and time to compile, debug builds. r? @wesleywiser
This updates the rust-version file to f7da9a42368f31abb02b8064bb93a11bf9ba9f5e.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Previous upstream ref: rust-lang/rust@fde8dfd New upstream ref: rust-lang/rust@f7da9a4 Filtered ref: 54ec598 Upstream diff: rust-lang/rust@fde8dfd...f7da9a4 This merge was created using https://github.com/rust-lang/josh-sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge ref 'f7da9a42368f' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Previous upstream ref: rust-lang/rust@fde8dfd
New upstream ref: rust-lang/rust@f7da9a4
Filtered ref: 54ec598
Upstream diff: rust-lang/rust@fde8dfd...f7da9a4
This merge was created using https://github.com/rust-lang/josh-sync.