Rollup of 10 pull requests - #162918
Closed
JonathanBrouwer wants to merge 39 commits into
Closed
Rollup of 10 pull requests#162918JonathanBrouwer wants to merge 39 commits into
JonathanBrouwer wants to merge 39 commits into
Conversation
LLVM 24 has moved from TargetOptions::ThreadModel to specifying thread-model as a module flag. This catches us up.
This copy will retain and is specialized for blocking operations.
Incr comp only uses the non-blocking variant.
This lock registry allows emulating fd based locks (like flock()) on top of the fcntl(F_SETLK) process based locks, thereby ensuring that concurrent rustc instances inside the same process don't break the incr comp locking scheme.
Borrow checking produces some weird, spanless help messages about fixing lifetime errors. If there are multiple, they are grouped under a header like this: ``` help: the following changes may resolve your lifetime errors ``` There are three forms of these. One of the forms is this: ``` = help: add bound `'a: 'b` ``` This form is redundant, because there is always an earlier help note (on a proper error message with a span) like this: ``` = help: consider adding the following bound: `'b: 'a` ``` This commit removes these redundant messages.
…ostic It's currently a spanless top-level help diagnostic. This commit changes it to an error (with one or more help subdiagnostics), gives it a span, and changes the wording. Note that giving it a span means that deduplication will no longer erroneously hide diagnostics with identical wording from different functions! Because of this, several "duplicate diagnostic" mentions are removed from the expected outputs. It's still a weird diagnostic (and now counts towards the error count) but it's better than before. This also removes the one use of buffered non-error diagnostics. So `BufferedDiag` is also removed.
And remove `struct_help`, to discourage use of `Level::Help`. (`Sublevel::Help` is fine.)
If `fmaf16` is exported, the existing version hits errors like:
error: `compiler_builtins` cannot call functions through upstream monomorphizations; encountered invalid call from `core::fmt::num::<impl core::fmt::Debug for u64>::fmt` to `core::fmt::num::imp::<impl core::fmt::Display for u64>::fmt`
--> library/core/src/fmt/num.rs:85:17
|
79 | / macro_rules! impl_Debug {
80 | | ($($T:ident)*) => {
81 | | $(
82 | | #[stable(feature = "rust1", since = "1.0.0")]
... |
85 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... |
96 | | };
97 | | }
| |_- in this expansion of `impl_Debug!`
...
595 | / impl_Debug! {
596 | | i8 i16 i32 i64 i128 isize
597 | | u8 u16 u32 u64 u128 usize
598 | | }
| |_- in this macro invocation
Presumably this comes from the call to `panicking::assert_failed!` that
needs to be monomorphized. Avoid any formatting by using a plain
`debug_assert!` if we are building the crate as compiler-builtins.
LLVM doesn't currently emit this but probably should, and this is valuable as a fallback in any case.
…ertdev,tgross35 `core::num::f16b` Rust's 16bit Brain Float Implements the [RFC: f16b type](rust-lang/rfcs#3983). Best reviewed commit by commit, happy to split into separate PRs if that is deemed easier to review. However the line count and surface area is, in my opinion, reasonably small. Adds; - ABI plumbing for the `f16b` along with `bfloat` lang item to work with LLVM, GCC is explicitly `unimplemented!(...)` - `f16b` feature gate, page for `f16b` on libruscdoc and a `struct bf16` in `core::num` - Tests - Treat `f16b` as a scalar primitive for scalable vectors Issues; - [Tracking Issue](rust-lang#160630) - [RFC](rust-lang/rfcs#3983)
Member
Author
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 17, 2026
Rollup of 10 pull requests try-job: dist-various-1 try-job: test-various try-job: test-x86_64-gnu-aux try-job: test-x86_64-gnu-llvm-21-3 try-job: test-x86_64-msvc-1 try-job: test-aarch64-apple-1 try-job: test-aarch64-apple-2 try-job: test-x86_64-mingw-1 try-job: test-i686-msvc try-job: test-armhf-gnu
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
PR #160859, which is a member of this rollup, was unapproved. This rollup was thus unapproved. |
Contributor
|
💔 Test for a5598e9 failed: CI. Failed jobs:
|
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.
Successful merges:
core::num::f16bRust's 16bit Brain Float #160859 (core::num::f16bRust's 16bit Brain Float)is_single_fp_elementfors390xandx86#161987 (fixis_single_fp_elementfors390xandx86)metadata.rmetawith a copy when finalizing the incremental compilation session dir fails #162366 (Replace hard linkedmetadata.rmetawith a copy when finalizing the incremental compilation session dir fails)Level::Help#162885 (Remove one remaining use ofLevel::Help)fmaf16now that we have an implementation #162606 (c-b: Exportfmaf16now that we have an implementation)cfi_encodingattribute. #162899 (Error on invalid placements of thecfi_encodingattribute.)r? @ghost
Create a similar rollup