Repository navigation
Rollup of 13 pull requests - #166209
Closed
JonathanBrouwer wants to merge 37 commits into
Closed
Rollup of 13 pull requests#166209JonathanBrouwer wants to merge 37 commits into
JonathanBrouwer wants to merge 37 commits into
Conversation
We replace it with dummy terminator value, which is the simplest solution for now.
This looks like it shouldn't change anything, but it is a small speedup for CTFE that goes through this macro. Presumably by avoiding the MIR for the early-out `&&` entirely, it can go a little faster.
…be async closure from DefId. Added conveiniance method for getting trait prefix from Asyncness.
…FnOnce was expected in function arguments. Blessed `ref-to-fn-once.rs` with new output. Refactored emit_specialized_closure_kind_error to use new convenience methods and slightly stronger typing. accepted changes for test
This will make it possible to move all code out of the crate root, while retaining as much line history as possible.
But still ignore EBADF in (e)println.
This used to be handled indirectly in std::stdio
Missed as part of 78c5cdd ("std: Combine `is_mips64_feature_detected` into `is_mips_feature_detected`").
`abort` is getting used a bit more in places where unwinding via `panic!` isn't desired. Some of these places involve shared const and runtime code, so mark `abort` unstably `const` to make this a bit easier. This uses `core::process::crash` as the const implementation, which will be const stable in the near future.
…ark-Simulacrum compiletest: Add testing for lint machinery at runtime While implementing rust-lang#157707, I noticed that we don't have 'runtime' tests for the diagnostic machinery (i.e. we test the derive macros themselves, but not their output when emitted). This introduces a new way to test this machinery. - Add `//@ aux-lint: file.rs`, which builds a lint library in `auxiliary/file.rs` - Lint libraries link with `rustc_private`, and export a `extern "C" fn register_lints(...)` - A new `compiletest-lint-driver` wraps rustc and installs the provided lints when building the test Included is a simple demo lint for example _AI Disclosure: I used an LLM to plan out the broad structure of the machinery and identify issues; all code in this PR is written by hand_
…implify-cfg-2, r=oli-obk Avoid using Terminator:None in simplify_cfg Another step towards changing `Option<Terminator>` to `Terminator` in `BasicBlockData`. More info in [this thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/vibe.20check.20-.20removing.20Option.20from.20Terminator/with/637588808). This pass used the None for roughly two reasons: - to avoid borrowck errors when inspecting 'current' terminator - to do the optimization - terminators are moved around when blocks are simplified and merged, and in the end, we filter out blocks that don't have terminators This is the only place where I feel like the simplest solution for now is to just use the sentinel value. I tried some other solutions but I always ended up with a lot more code and new problems on top of that. Moving terminators around should probably be doable by tracking where the terminators should be moved in a separate data structure and then move them all at the end, but making the initial `take` work requires some `split_at_mut` juggling and refactoring the whole pass to avoid aliasing the 'current' terminator with the rest of the basic blocks. I tried to create some wrapper for basic blocks in this "terminator taken out" state but it ended up being just a ton of tricky changes that don't really feel worth the cost to me. r? oli-obk I want to know what you think, whether this still counts as ok for now.
Remove ebadf handling from stdio But still ignore ebadf in `println!` and `eprintln!` macros. We preserve the Windows behaviour of ignoring NUL handles. Fixes rust-lang#47271 (see rust-lang#47271 (comment))
…r=oli-obk reflection: doc attributes from adts, fields, and variants Adds intrinsics and methods to get the raw doc comment strings from adts, fields, and variants. As noted in the tracking issue rust-lang#146922, before stabilizing the interface we should consider whether these methods get the raw strings. r? @oli-obk
Clearer diagnostics when `&FnOnce` was provided when `FnOnce` was expected Fixes rust-lang#47648 * Added convenience method for finding the `ClosureKind` of a maybe async closure of TyCtx. * Added new clearer diagnostic when `&FnOnce` was provided when `FnOnce` was expected in function arguments. * Add regression test for the above. * Refactored emit_specialized_closure_kind_error to use new convenience methods and slightly stronger typing.
…=oli-obk view-types: make sure view types are !Sized
simd-test: Fix cfg syntax in the test macro Missed as part of 78c5cdd ("std: Combine `is_mips64_feature_detected` into `is_mips_feature_detected`").
…y,RalfJung std: Unstably constify `std::process::abort` `abort` is getting used a bit more in places where unwinding via `panic!` isn't desired. Some of these places involve shared const and runtime code, so mark `abort` unstably `const` to make this a bit easier. This uses `core::process::crash` as the const implementation, which will be const stable in the near future. Tracking issue: rust-lang#166193.
Member
Author
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
Rollup of 13 pull requests try-job: dist-various-1 try-job: dist-various-2 try-job: test-various try-job: test-x86_64-gnu-aux 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 try-job: test-x86_64-gnu-llvm-22-3 try-job: test-aarch64-msvc-2
Contributor
|
⌛ Testing commit 7339b14 with merge 8e3fa9e... Workflow: https://github.com/rust-lang/rust/actions/runs/44569669167 |
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
…uwer Rollup of 13 pull requests Successful merges: - #157721 (compiletest: Add testing for lint machinery at runtime) - #165934 (Avoid using Terminator:None in simplify_cfg) - #166117 (Remove ebadf handling from stdio) - #165094 (reflection: doc attributes from adts, fields, and variants) - #165216 (Clearer diagnostics when `&FnOnce` was provided when `FnOnce` was expected) - #165694 (view-types: make sure view types are !Sized) - #165883 (Report a recursion limit error instead of delaying a bug in RPITIT collector) - #165971 (fix: non-deterministic temporary object paths in linker maps) - #166136 (Move ub_checks() inside the const_eval_select branch.) - #166166 (Don't recover if not allowed in `parse_seq_to_before_tokens`) - #166176 (compiletest: Move all code out of the crate root) - #166185 (simd-test: Fix cfg syntax in the test macro) - #166194 (std: Unstably constify `std::process::abort`) Failed merges: - #166150 (Reflection: refactor Type and TypeKind) - #166160 (refactor CTFE-specific intrinsics to different file)
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
PR #157721, which is a member of this rollup, was unapproved. This rollup was thus unapproved. Auto build was cancelled due to unapproval. Cancelled workflows: |
Contributor
|
💔 Test for 04d0769 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:
&FnOncewas provided whenFnOncewas expected #165216 (Clearer diagnostics when&FnOncewas provided whenFnOncewas expected)parse_seq_to_before_tokens#166166 (Don't recover if not allowed inparse_seq_to_before_tokens)std::process::abort#166194 (std: Unstably constifystd::process::abort)Failed merges:
r? @ghost
Create a similar rollup