Automated pull from upstream HEAD#2239
Closed
ferrocene-automations[bot] wants to merge 689 commits intomainfrom
Closed
Automated pull from upstream HEAD#2239ferrocene-automations[bot] wants to merge 689 commits intomainfrom
HEAD#2239ferrocene-automations[bot] wants to merge 689 commits intomainfrom
Conversation
Fix typos and markdown errors This PR fixes some typos and markdown errors I found while writing rust-lang/rust#153697. I've split it out to reduce the size of that PR.
…athanBrouwer refactor(attribute parser): move check_custom_mir to attribute parser Part of rust-lang/rust#153101 r? @JonathanBrouwer
Auto generate trait name from first method.
Input:
```rust
impl S$0 {
fn foo() {}
}
```
Old output:
```rust
trait NewTrait {
fn foo();
}
impl NewTrait for S {
fn foo() {}
}
```
This PR output:
```rust
trait Foo {
fn foo();
}
impl Foo for S {
fn foo() {}
}
```
…-from-impl Add auto trait name for generate_trait_from_impl
…uwer Rollup of 5 pull requests Successful merges: - rust-lang/rust#154103 (coretests: Expand ieee754 parsing and printing tests to f16) - rust-lang/rust#152669 (rustc_public: add `vtable_entries()` to `TraitRef`) - rust-lang/rust#153776 (Remove redundant `is_dyn_thread_safe` checks) - rust-lang/rust#154121 (Fix typos and markdown errors) - rust-lang/rust#154126 (refactor(attribute parser): move check_custom_mir to attribute parser)
…(#16667) Pull-requests get a warning because of [RUSTSEC-2026-0007](https://rustsec.org/advisories/RUSTSEC-2026-0007.html). Bumping `bytes` will silence the warning. changelog: none r? flip1995
Fix tuple struct pat expected type
… r=lcnr Eagerly normalize in generalize *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/151746)* r? @lcnr cc: rust-lang/trait-system-refactor-initiative#262
Guard patterns: lowering to THIR This pr implements lowering of guard patterns to THIR r? @Nadrieril cc @max-niederman Tracking issue: rust-lang/rust#129967
…hanBrouwer refactor - moving `check_stability` check to `parse_stability` This PR is part of issue rust-lang/rust#153101 and by extension this rust-lang/rust#131229 as well r? @JonathanBrouwer
llvm: Update `reliable_f128` configuration for LLVM22 on Sparc LLVM22 should have resolved issues with the `f128` ABI, meaning we can now set `cfg(target_has_reliable_f128)` on the platform. Link: llvm/llvm-project@3e16aef
vec::Drain::fill: avoid reference to uninitialized memory `range_slice` points to memory that is not initialized (e.g. it might be dropped `Box`/`String`). Let's avoid that and instead use an index-based loop.
test copy_specializes_from_vecdeque: reduce iteration count for Miri This test currently takes >20s and that doesn't really seem worth it.
These methods are just wrappers around the intrinsics.
Stash parse errors when pasing rtn that doesn't use `(..)`. Emit single error on `Foo::bar(qux)` that looks like rtn in incorrect position and suggest `Foo::bar(..)`. ``` error: return type notation not allowed in this position yet --> $DIR/let-binding-init-expr-as-ty.rs:18:10 | LL | struct K(S::new(())); | ^^^^^^^^^^ | help: furthermore, argument types not allowed with return type notation | LL - struct K(S::new(())); LL + struct K(S::new(..)); | ``` On incorrect rtn in let binding type for an existing inherent associated function, suggest `:` -> `=` to turn the "type" into a call expression. ``` error: expected type, found associated function call --> $DIR/let-binding-init-expr-as-ty.rs:29:12 | LL | let x: S::new(()); | ^^^^^^^^^^ | help: use `=` if you meant to assign | LL - let x: S::new(()); LL + let x = S::new(()); | ```
This improves startup performance by 16%, shown by an optimized hello-world program. glibc's `pthread_getattr_np` performs expensive syscalls when reading `/proc/self/maps`. That is all wasted with `panic = immediate-abort` active because `init()` immediately discards the return value from `install_main_guard()`. A similar improvement can be seen in environments that don't have `/proc`. This change is safe because the immediately succeeding comment says that we rely on Linux's "own stack-guard mechanism".
Replace direct usage of make with syntax factory and migrate assist to syntaxEditor
fix/extend some mir-opt comments Looks like CopyProp was refactored without updating that comment. And for GVN, I think this is what you had in mind @cjgillot but would be great if you could have a look.
…thanBrouwer document some functions on AttributeExt r? @jyn514
…uwer Rollup of 4 pull requests Successful merges: - rust-lang/rust#153434 (Use a safe `BucketIndex` abstraction in `VecCache`) - rust-lang/rust#154133 (Defer codegen for the VaList Drop impl to actual uses) - rust-lang/rust#154297 (fix/extend some mir-opt comments) - rust-lang/rust#154299 (document some functions on AttributeExt)
This commit is generated by `ferrocene/tools/pull-upstream/pull.sh`. The list of excluded files is defined in `.gitattributes`.
Member
|
bors try |
tshepang
reviewed
Mar 24, 2026
Contributor
tryBuild failed: |
Member
|
bors try |
Contributor
tryBuild failed: |
Contributor
well that's odd |
Contributor
|
wrote up a bunch of improved diagnostics in rust-lang/rust#154387 but didn't fix the actual problem. i believe this is an upstream issue but as a workaround i'm going to add some short-circuiting if |
Member
|
I see a conflict, will replay it in the morning |
Contributor
|
upstream fix is rust-lang/rust#154368 |
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.
This PR pulls the following changes from the upstream repository:
154300: Rollup of 4 pull requests154299: document some functions on AttributeExt154297: fix/extend some mir-opt comments154133: Defer codegen for the VaList Drop impl to actual uses153434: Use a safeBucketIndexabstraction inVecCache151063: Link LLVM dynamically on aarch64-apple-darwin154289: Rollup of 10 pull requests154282: rustc-dev-guide subtree update154264: Update books154163: enzyme submodule update154017: Fix invalid add of duplicated call locations for the rustdoc scraped examples feature154252: Don't store current-session side effects inOnDiskCache154236: Clean up query-forcing functions154153: core: Implementunchecked_funnel_{shl,shr}154132: Add missing num_internals feature gate to coretests/benches153979: Rename various query cycle things.153964: Fixdoc_cfgnot working as expected on trait impls154076:DepNodeuse improvements154273: Rollup of 8 pull requests154245: Allow applying autodiff macros to trait functions.154224: Remove moreBuiltinLintDiagvariants154179: tests/ui/async-await/gat-is-send-across-await.rs: New regression test154257: Revert eagerly normalize in generalize154093: const validity checking: do not recurse to references inside MaybeDangling153912: Avoid prematurely choosing a glob import153041: RemoveATTRIBUTE_ORDER122668: Add APIs for dealing with titlecase152931: Always checkConstArgHasTypeeven when otherwise ignoring154253: Rollup of 13 pull requests154228: Improve inline assembly error messages154225: diagnostics: avoid ICE in confusable_method_name for associated functions154218: interpret/validity: remove unreachable error kind154161: On E0277 tweak help when single type impls traits154140: Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.153540: drop derive helpers during attribute parsing154207: Refactor query loading154191: refactor RangeFromIter overflow-checks impl154085: Parenthesize or-patterns in prefix pattern positions in pretty printer153069: [BPF] add target feature allows-misaligned-mem-access154105: bootstrap: Pass--features=rustcto rustc_transmute153686:std: includedlmallocfor all non-wasi Wasm targets154241:rust-analyzersubtree update154255: Rollup of 21 pull requests154201: Use enums to clarifyDepNodeColorMapcolor marking154188: Update the tracking issue for #[diagnostic::on_move]154182: diagnostics: avoid ICE for undeclared generic parameter in impl154175: Add new alias for Guillaume Gomez email address154174: allowincomplete_featuresin most UI tests154167: ui/lto: move and rename two tests from issues/154011: implementBinaryHeap::as_mut_slice153936: Skip stack_start_aligned for immediate-abort153647: docs(fs): Clarify That File::lock Coordinates Across Processes153623: std: movesys::pal::ostosys::paths153582: Simplify find_attr! for HirId usage153491: Movefreeze_*methods toOpenOptionsExt2150630: Unknown -> Unsupported compression algorithm153931: remove usages of to-be-deprecated numeric constants153880: Lifted intersperse and intersperse_with Fused transformation and updated documentation + tests153857: Renametarget.abitotarget.cfg_abiand enum-ify llvm_abiname153718: Fix environ on FreeBSD with cdylib targets that use -Wl,--no-undefined .153534: Remove a flakygot_timeoutassert from two channel tests153312: Packages as namespaces part 1153107: Optimize BTreeMap::append() using CursorMut152543: privacy: Fix type privacy holes in RPITITs154217: miri subtree update154122: Remove theanonquery modifier154176: Clippy subtree update153768: Makepar_sliceconsistent with single-threaded execution154160: Rollup of 6 pull requests154156: Moving issue-52049 to borrowck154120: Start migratingDecorateDiagCompat::Builtinitems toDecorateDiagCompat::Dynamic154118: don't suggest non-deriveable traits for unions146961: Allow passingexprmetavariable ascfgpredicate154155: tests/ui/async-await/drop-option-future.rs: New regression test154154: Emit fewer errors for incorrect rtn and=->:typos in bindings154148: Update cargo submodule154151: Rollup of 5 pull requests154143: test copy_specializes_from_vecdeque: reduce iteration count for Miri154138: vec::Drain::fill: avoid reference to uninitialized memory154119: llvm: Updatereliable_f128configuration for LLVM22 on Sparc154015: refactor - movingcheck_stabilitycheck toparse_stability153828: Guard patterns: lowering to THIR151746: Eagerly normalize in generalize154137: Rollup of 5 pull requests154126: refactor(attribute parser): move check_custom_mir to attribute parser154121: Fix typos and markdown errors153776: Remove redundantis_dyn_thread_safechecks152669: rustc_public: addvtable_entries()toTraitRef154103: coretests: Expand ieee754 parsing and printing tests to f16153489: ty-aware delayed AST -> HIR lowering154123: Rollup of 15 pull requests154109: tests: Add regression test for async closures involving HRTBs154087: Fix whitespace after fragment specifiers in macro pretty printing154086: Insert space after float literal ending with.in pretty printer154084: Preserve braces aroundselfin use tree pretty printing154082: Updates derive_where and removes workaround154075: Rewritequery_ensure_result.154059: tests: Activatemust_not_suspendtest forMutexGuarddropped beforeawait154019: two smaller feature cleanups153992: bootstrap: Optionally print a backtrace if a command fails153862: Renamecycle_checktofind_cycle152973: remove -Csoft-float150935: Introduce #[diagnostic::on_move(message)]154048: Don't emit rustdocmissing_doc_code_exampleslint on impl items153556:implrestriction lowering152909: sess:-Zbranch-protectionis a target modifier152913: rustc_resolve: improve const generic errors154092: Rollup of 19 pull requests154041: bootstrap: Allow--blessing changes to editor settings files154038: mergeregions-outlives-nominal-type-*tests into one file154036: borrowck/type_check: remove helper left-over from unsized locals154018: simplify and removetests/ui/kindckand related tests153987: mGCA: Lower const generic args to infer when needed153974: Point at return type when it is the source of the type expectation153913: Fix some suggestions of thefor-loops-over-fallibleslint153804: Derive Macro Eq: link to more detailed documentation153557: fix inference variables leaking into HIR const literal lowering logic153308: Add hygiene annotations for tokens inmacro_rules!bodies153170: Add is_disconnected functions to mpsc and mpmc channels151905: Split thedec2flt::RawFloattrait for easier reuse154078:define_callbackstweaks154077: Optimize 128-bit integer formatting153824: AddWakediagnostic item foralloc::task::Wake153727: When single impl can satisfy inference error, suggest type153681: ci: add runners for vanilla LLVM 22153333: Fix bootstrap rust build failure for vxworks152870: Do not enable split debuginfo for windows-gnu153869: Do not shallow resolve to root var while fudging153480: Add missingtrack_callerto overflowing trait methods153656: Abstract AST lowering resolver154039: Rollup of 3 pull requests154028: Rename traitIntoQueryParamtoIntoQueryKey154020: Moved tests/ui/issues/issue-23891.rs to tests/ui/macros/153580: Handle statics and TLS in raw-dylib for ELF154035: Rollup of 3 pull requests153985: doc: clarify allocator invariant153945: Change?SizedtoPointeeSizedinUnwindSafeimpls for pointers153677: Remove string content from panics154032: Rollup of 3 pull requests154026: Remove unused typesUnusedGenericParamsandFiniteBitSet153778: Couple of driver interface improvements153998: Move query-stack-frame spans intoQueryStackFrame154013: Rollup of 6 pull requests154012: unstable impl ofFrom<{i64, u64}> for f128154006: attrs: Ignore ExprKind::Err when converting path attr expr to lit153994: movetests/ui/invalidtests to new folders153795: Point turbofish inference errors at the uninferred generic arg153682: Tweak E0599 note152998: std: makeOsString::truncatea no-op whenlen > current_len149728: Emit ForbiddenBound fatally if meeting complex bound154008: Rollup of 14 pull requests153991: Small report_cycle refactor153965: Fix minor kasan bugs153946: dissolvetests/ui/cross153920: improve#[track_caller]invalid ABI error153894: Point at unit structs on foreign crates in type errors when they are the pattern of a binding153884: testclassify-runtime-constforf16153709: Fix hypothetical ICE invariances_of153622: remove concept of soft-unstable features153531: Fix LegacyKeyValueFormat report from docker build: various152968: Flip "region lattice" in RegionKind doc comment153967: Tweak wording of failed predicate in inference error153959: Fix non-moduleparent_modulein stripped cfg diagnostics153801: Add the option to run UI tests with the parallel frontend153972: stdarch subtree update153984: Rollup of 5 pull requests153921: Suppress self-referential associated type constraint suggestion153907: Remove redundant fields fromQueryStackFrame153738: Don't look for non-type-level assoc consts when checking trait object types153372: Fix LegacyKeyValueFormat report from docker build: x86_64-gnu153966: suggest valid features when target feature is invalid