Rollup of 28 pull requests - #160725
Open
JonathanBrouwer wants to merge 85 commits into
Open
Conversation
Proving `T::Assoc<_>: Sized` while a where-clause bound `T::Assoc<u8>: Sized` was in scope used to over-eagerly infer the unconstrained argument to `u8`, causing a spurious "mismatched types" error. It should compile; lock that in.
Add tests for generic function pointers Change FnPtr tests to use assert_eq!() rather than println!()
It had to be in rustc_resolve because there was no general attribute parsing infra back then, but now there is, so it should be there
LLVM 21 preserves the bounds assumption but does not eliminate the aggregate phi that LLVM 22 removes. Check each version's supported optimization and restore the shared postcondition so direct callers can eliminate bounds checks.
These extra layers of indirection are more confusing than helpful.
This has the pleasant side-effect of making `./x fix compiler` actually work, without breaking `./x clippy` (which relied on the hardcoded `Kind::Check`).
Also change the pkgsrc-wip link to indicate a more current rust version. To be re-visited again once 9.x reaches end of maintnance and EoL by the end of the current month.
…from` * Add support for wrapping of the return value of delegation * Cleanups * Review: use `make_lang_item_qpath`
…n-item statements
Fixes the builds of rustc and library/std for the L4Re target OS. A major change was done in linking binaries: The need for the L4Bender tool was removed and linking parameters are now fully configured in the rustc target config.
The field of `BodyOwnerKind` is computed via the exact same way as this check.
…r=petrochenkov delegation: fix determining wrong `FnKind` when delegation is inside const arg Fixes rust-lang#159127. Part of rust-lang#118212. r? @petrochenkov
derive(Diagnostic): link to proper docs I confirmed that this makes the doc comment show up in RA when hovering a `derive(Diagnostic)`. Also it's not correct that `note` etc can only be used on the struct, those attributes also work on (some) fields. So also fix the comment.
Clean up some manual debug impls
Some of these can just be derives. Others omitted fields, deliberately or not.
For example, the annotate emitter debug now looks like:
```rust
AnnotateSnippetEmitter {
dst: <writer@0x9069b55c60>,
sm: Some(
SourceMap {
files: RwLock(
RwLock {
data: [
"C:\\Users\\bruno\\Rust\\rust\\tests\\ui\\consts\\bad-array-size-in-type-err.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\lib.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/attribute_docs.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/keyword_docs.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\../../core/src/primitive_docs.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\macros.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\thread\\local.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\prelude\\mod.rs",
"/rustc/FAKE_PREFIX\\library\\std\\src\\prelude\\v1.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\lib.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\clone.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\marker.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\default.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\cmp.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\mod.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\drop.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\function.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\ops\\async_function.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\convert\\mod.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\mod.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\mod.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\double_ended.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\exact_size.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\collect.rs",
"/rustc/FAKE_PREFIX\\library\\core\\src\\iter\\traits\\iterator.rs",
"/rustc/FAKE_PREFIX\\library\\alloc\\src\\lib.rs",
"/rustc/FAKE_PREFIX\\library\\alloc\\src\\borrow.rs",
"/rustc/FAKE_PREFIX\\library\\alloc\\src\\string.rs",
],
},
),
file_loader: <file_loader@0x1f813386448>,
path_mapping: FilePathMapping {
mapping: [],
filename_remapping_scopes: RemapPathScopeComponents(
MACRO | DIAGNOSTICS | DEBUGINFO | COVERAGE | DOCUMENTATION,
),
},
working_dir: RealFileName {
local: Some(
InnerRealFileName {
name: "C:\\Users\\bruno\\Rust\\rust",
working_directory: "",
embeddable_name: "C:\\Users\\bruno\\Rust\\rust",
},
),
maybe_remapped: InnerRealFileName {
name: "C:\\Users\\bruno\\Rust\\rust",
working_directory: "",
embeddable_name: "C:\\Users\\bruno\\Rust\\rust",
},
scopes: RemapPathScopeComponents(
0x0,
),
},
hash_kind: Sha256,
checksum_hash_kind: None,
},
),
short_message: false,
ui_testing: true,
ignored_directories_in_source_blocks: [
"C:\\Users\\bruno\\.cargo",
"C:\\Users\\bruno\\Rust\\rust\\vendor",
],
diagnostic_width: None,
macro_backtrace: false,
track_diagnostics: false,
terminal_url: No,
theme: Ascii,
}
```
…chenyukang move naked function ui tests Simply reorganizes some tests. - [x] I did not use an LLM to create a change in this PR. - [ ] I used an LLM to create a change in this PR, and I have explained below how it was used.
…s, r=cjgillot Improve `MaybeLiveLocals` Details in individual commits. r? @cjgillot
Add branch config for perf. unrolling in bors Preparation for rust-lang/bors#285.
…name, r=folkertdev
rustc_codegen_llvm: handle sm_101* features being an alias
LLVM 24 [moved sm_101{,a,f} features](llvm/llvm-project#214335) to just be an alias for the matching sm_110 feature. Since the sm_110 feature already exists, we can do the remapping unconditionally rather than gating it on LLVM 24.
@rustbot label: +llvm-main
…to, r=ubiratansoares renovate: clarify that vulnerability PRs are opened automatically r? @ubiratansoares
Contributor
Author
Contributor
Contributor
|
⌛ Testing commit f07399c with merge 7dfb9d0... Workflow: https://github.com/rust-lang/rust/actions/runs/31224689180 |
rust-bors Bot
pushed a commit
that referenced
this pull request
Aug 7, 2026
…uwer Rollup of 28 pull requests Successful merges: - #159784 (Hint that memchr returns an in-bounds index) - #160673 (Improve `canonical_param_env_cache`) - #150885 (Revive L4Re target) - #159643 (Add support for splatted function pointers) - #160433 (delegation: add support for wrapping of the return value with `From::from`) - #160530 (refactor handling of target features in Session) - #160606 (bootstrap: Store and use an explicit CheckKind in `check::Rustc`) - #160628 (fix ICE in `suggest_add_reference_to_arg` for non-callable items) - #160683 (Add regression test for unknown feaeture name reported with other errors) - #157641 (Do not promote extern statics) - #158904 (Fix FutureDropPoll shim for by-move async closures) - #159816 (added note/help about iterator invalidation when mutating a collection inside a for loop) - #160103 (Add regression test for GAT bound mismatched type error) - #160335 (dlopen offload) - #160445 (codegen: classify localized MSVC linker progress as linker_info) - #160499 (rustc_resolve: move diagnostic attribute linting to attr parsing) - #160504 (cleanup borrowck, improve c-variadic handling) - #160577 (expand: Feature gate AST-based attribute macros on expressions and statements) - #160587 (Add regression test for associated type outlives bound at call site) - #160625 (platform-support/netbsd.md: No longer mention 8.x, due to EoL.) - #160633 (delegation: fix determining wrong `FnKind` when delegation is inside const arg) - #160636 (derive(Diagnostic): link to proper docs) - #160644 (Clean up some manual debug impls) - #160649 (move naked function ui tests) - #160672 (Improve `MaybeLiveLocals`) - #160693 (Add branch config for perf. unrolling in bors) - #160696 (rustc_codegen_llvm: handle sm_101* features being an alias) - #160706 (renovate: clarify that vulnerability PRs are opened automatically)
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot)Important For more information how to resolve CI failures of this job, visit this link. |
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:
canonical_param_env_cache#160673 (Improvecanonical_param_env_cache)From::from#160433 (delegation: add support for wrapping of the return value withFrom::from)check::Rustc#160606 (bootstrap: Store and use an explicit CheckKind incheck::Rustc)suggest_add_reference_to_argfor non-callable items #160628 (fix ICE insuggest_add_reference_to_argfor non-callable items)FnKindwhen delegation is inside const arg #160633 (delegation: fix determining wrongFnKindwhen delegation is inside const arg)MaybeLiveLocals#160672 (ImproveMaybeLiveLocals)r? @ghost
Create a similar rollup