about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-06-07Only allow `bootstrap` cfg in rustc, related and tool-stdUrgau-8/+13
2025-06-08Add missing word to `cloned_ref_to_slice_refs` docsVincent Ging Ho Yim-1/+1
changelog: none
2025-06-07Auto merge of #141927 - compiler-errors:perf-select, r=lcnrbors-41/+70
Clear nested candidates in select if certainty is yes Proving these goals is redundant.
2025-06-07Rustup to rustc 1.89.0-nightly (44f415c1d 2025-06-06)bjorn3-1/+1
2025-06-07Fix `branches_sharing_code` suggests wrongly when dealing with macros (#14907)dswij-5/+215
Closes rust-lang/rust-clippy#14873 changelog: [`branches_sharing_code`] fix wrong suggestions when dealing with macros
2025-06-07Sync from rust 44f415c1d617ebc7b931a243b7b321ef8a6ca47cbjorn3-21/+21
2025-06-07UnsafePinned: update get() docs and signature to allow shared mutationRalf Jung-9/+12
2025-06-07fix wording in assertAmogh Shivaram-1/+1
2025-06-07Auto merge of #141964 - sayantn:update-stdarch, r=Amanieubors-9/+9
Update stdarch submodule Updates the stdarch submodule. ## Merged PRs - rust-lang/stdarch#1797 - rust-lang/stdarch#1758 - rust-lang/stdarch#1798 - rust-lang/stdarch#1811 - rust-lang/stdarch#1810 - rust-lang/stdarch#1807 - rust-lang/stdarch#1806 - rust-lang/stdarch#1812 - rust-lang/stdarch#1795 - rust-lang/stdarch#1796 - rust-lang/stdarch#1813 - rust-lang/stdarch#1816 - rust-lang/stdarch#1818 - rust-lang/stdarch#1820 - rust-lang/stdarch#1819 r? `@Amanieu` `@rustbot` label T-libs-api Closes rust-lang/rust#111137
2025-06-07Auto merge of #141964 - sayantn:update-stdarch, r=Amanieubors-17/+9
Update stdarch submodule Updates the stdarch submodule. ## Merged PRs - rust-lang/stdarch#1797 - rust-lang/stdarch#1758 - rust-lang/stdarch#1798 - rust-lang/stdarch#1811 - rust-lang/stdarch#1810 - rust-lang/stdarch#1807 - rust-lang/stdarch#1806 - rust-lang/stdarch#1812 - rust-lang/stdarch#1795 - rust-lang/stdarch#1796 - rust-lang/stdarch#1813 - rust-lang/stdarch#1816 - rust-lang/stdarch#1818 - rust-lang/stdarch#1820 - rust-lang/stdarch#1819 r? `@Amanieu` `@rustbot` label T-libs-api Closes rust-lang/rust#111137
2025-06-07bless non-Linux testsRalf Jung-21/+19
2025-06-07make better use of label for data-race and some other errorsRalf Jung-388/+240
2025-06-07diagnostics: do not repeat the entire message in the span labelRalf Jung-578/+581
2025-06-07const-eval error: always say in which item the error occurredRalf Jung-952/+938
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07Make NonZero<char> possibleMarijn Schouten-5/+19
2025-06-07rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const` wordingMartin Nordholts-35/+78
In some contexts, const expressions are OK. Add a `here` to the error message to clarify this.
2025-06-07Add test renamed_feature.rsxizheyin-0/+12
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-07get rid of spurious cfg(bootstrap)Ralf Jung-3/+0
2025-06-07Auto merge of #141917 - petrochenkov:nobinroot, r=jieyouxubors-4/+2
bootstrap: Remove `rustc_snapshot_libdir` from PATH in one more place Same as https://github.com/rust-lang/rust/pull/141657 but in a different part of the build system, with the same goal of addressing [#t-infra/bootstrap > Build broken in MSYS2 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Build.20broken.20in.20MSYS2/near/520709527). It seems to work on windows-{gnu,msvc} and linux-gnu at least. r? jieyouxu
2025-06-07compiler: Treat ForceWarning as a Warning for diagnostic levelJubilee Young-1/+42
This silences an ICE.
2025-06-07test_dup: ensure the FDs remain in sync even after dup'ingRalf Jung-2/+3
2025-06-07Merge pull request #4381 from rust-lang/rustup-2025-06-07Ralf Jung-3661/+3570
Automatic Rustup
2025-06-07Auto merge of #142142 - jhpratt:rollup-frlezq2, r=jhprattbors-570/+815
Rollup of 8 pull requests Successful merges: - rust-lang/rust#137992 (Stabilise `os_string_pathbuf_leak`) - rust-lang/rust#141558 (Limit the size of cgu names when using the `-Zhuman-readable-cgu-name…) - rust-lang/rust#141797 (compiler: set Apple frame pointers by architecture) - rust-lang/rust#141857 (coretests: move float tests from num to floats module and use a more flexible macro to generate them) - rust-lang/rust#142045 (Make obligation cause code suggestions verbose) - rust-lang/rust#142076 (Check documentation of bootstrap in PR CI) - rust-lang/rust#142110 (Add solaris targets to build-manifest) - rust-lang/rust#142131 (Make cast suggestions verbose) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-07cfg for no no_global_oom_handlingAmogh Shivaram-0/+1
2025-06-07Rollup merge of #142131 - estebank:cast-sugg, r=UrgauJacob Pratt-115/+128
Make cast suggestions verbose ``` error[E0604]: only `u8` can be cast as `char`, not `u32` --> $DIR/E0604.rs:2:5 | LL | 1u32 as char; | ^^^^^^^^^^^^ invalid cast | help: try `char::from_u32` instead | LL - 1u32 as char; LL + char::from_u32(1u32); | ``` ``` error[E0620]: cast to unsized type: `&[u8]` as `[char]` --> $DIR/cast-to-slice.rs:6:5 | LL | arr as [char]; | ^^^^^^^^^^^^^ | help: try casting to a reference instead | LL | arr as &[char]; | + ``` ``` error[E0620]: cast to unsized type: `Box<{integer}>` as `dyn Send` --> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5 | LL | Box::new(1) as dyn Send; | ^^^^^^^^^^^^^^^^^^^^^^^ | help: you can cast to a `Box` instead | LL | Box::new(1) as Box<dyn Send>; | ++++ + ``` Part of rust-lang/rust#141973.
2025-06-07Rollup merge of #142110 - psumbera:solaris-ci-build4, r=marcoieniJacob Pratt-0/+2
Add solaris targets to build-manifest this is follow up for: https://github.com/rust-lang/rust/pull/138699
2025-06-07Rollup merge of #142076 - Kobzol:doc-bootstrap-ci, r=marcoieniJacob Pratt-0/+1
Check documentation of bootstrap in PR CI It's annoying when wrong doc comments in bootstrap [break](https://github.com/rust-lang/rust/pull/141272#issuecomment-2943614152) `auto` CI. This has happened a few times recently, and documenting bootstrap with the stage0 compiler should be pretty quick, so let's add it to PR CI. r? ``@marcoieni``
2025-06-07Rollup merge of #142045 - estebank:obligation-cause-code-suggestion, ↵Jacob Pratt-57/+80
r=compiler-errors Make obligation cause code suggestions verbose ``` error[E0277]: `()` is not a future --> $DIR/unnecessary-await.rs:28:10 | LL | e!().await; | ^^^^^ `()` is not a future | = help: the trait `Future` is not implemented for `()` = note: () must be a future or must implement `IntoFuture` to be awaited = note: required for `()` to implement `IntoFuture` help: remove the `.await` | LL - e!().await; LL + e!(); | ``` ``` error[E0277]: the trait bound `String: Copy` is not satisfied --> $DIR/const-fn-in-vec.rs:1:47 | LL | static _MAYBE_STRINGS: [Option<String>; 5] = [None; 5]; | ^^^^ the trait `Copy` is not implemented for `String` | = note: required for `Option<String>` to implement `Copy` = note: the `Copy` trait is required because this value will be copied for each element of the array help: create an inline `const` block | LL | static _MAYBE_STRINGS: [Option<String>; 5] = [const { None }; 5]; | +++++++ + ``` Part of rust-lang/rust#141973
2025-06-07Rollup merge of #141857 - RalfJung:coretests-floats, r=tgross35Jacob Pratt-353/+548
coretests: move float tests from num to floats module and use a more flexible macro to generate them This makes some progress on https://github.com/rust-lang/rust/issues/141726 by moving the float tests in `num` to `floats` and using a newer, more flexible macro to generate them. We also newly run these tests on f16 and f128 in const, and at runtime in Miri and for hosts where that works well enough. I didn't yet deduplicate any tests or port the existing `floats::f*` tests to the macro, that can happen in a future PR. try-job: x86_64-gnu-aux
2025-06-07Rollup merge of #141797 - ↵Jacob Pratt-36/+23
workingjubilee:apple-likes-frame-pointers-but-not-that-much, r=madsmtm compiler: set Apple frame pointers by architecture All Apple targets stop overriding this configuration and instead use the default base of FramePointer::NonLeaf, which means some Apples will have less frame pointers in leaf functions. r? ``@madsmtm`` cc ``@thomcc``
2025-06-07Rollup merge of #141558 - Diggsey:db-limit-cgu-name-length, r=matthewjasperJacob Pratt-6/+31
Limit the size of cgu names when using the `-Zhuman-readable-cgu-name… …s` option Prior to this change, cgu names could be generated which would result in filenames longer than the limit imposed by the OS.
2025-06-07Rollup merge of #137992 - its-the-shrimp:stabilise_os_string_pathbuf_leak, ↵Jacob Pratt-3/+2
r=dtolnay Stabilise `os_string_pathbuf_leak` This PR stabilises `#[feature(os_string_pathbuf_leak)]`, which defines 2 new methods in the std: ```rs impl OsString { pub fn leak<'a>(self) -> &'a mut OsStr; } impl PathBuf { pub fn leak<'a>(self) -> &'a mut Path; } ``` ACP: https://github.com/rust-lang/libs-team/issues/389 Tracking issue: https://github.com/rust-lang/rust/issues/125965 Implementation: https://github.com/rust-lang/rust/pull/125966
2025-06-07fmtThe Miri Cronjob Bot-3/+10
2025-06-07Merge from rustcThe Miri Cronjob Bot-3660/+3562
2025-06-06compiler: Remove superfluous renaming import of ExternAbiJubilee Young-3/+1
2025-06-06compiler: Sort and doc ExternAbi variantsJubilee Young-33/+62
2025-06-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-06put feature attribute in exampleAmogh Shivaram-0/+2
2025-06-07Auto merge of #141910 - Kobzol:new-bors-try-branch-name-doc, r=marcoienibors-1/+2
Fix `create-docs-artifacts.sh` with new bors The slashes in the branch name (`automation/bors/try`) were causing issues for this script (https://github.com/rust-lang/rust/actions/runs/15391908130/job/43303193243). r? `@marcoieni` try-job: `mingw-check*`
2025-06-06Add `into_chunks`Amogh Shivaram-0/+52
2025-06-07Unify normalization of terms in deeply normalizeMichael Goulet-71/+30
2025-06-06Add `-Z hint-mostly-unused` to tell rustc that most of a crate will go unusedJosh Triplett-0/+43
This hint allows the compiler to optimize its operation based on this assumption, in order to compile faster. This is a hint, and does not guarantee any particular behavior. This option can substantially speed up compilation if applied to a large dependency where the majority of the dependency does not get used. This flag may slow down compilation in other cases. Currently, this option makes the compiler defer as much code generation as possible from functions in the crate, until later crates invoke those functions. Functions that never get invoked will never have code generated for them. For instance, if a crate provides thousands of functions, but only a few of them will get called, this flag will result in the compiler only doing code generation for the called functions. (This uses the same mechanisms as cross-crate inlining of functions.) This does not affect `extern` functions, or functions marked as `#[inline(never)]`. Some performance numbers, based on a crate with many dependencies having just *one* large dependency set to `-Z hint-mostly-unused` (using Cargo's `profile-rustflags` option): A release build went from 4m07s to 2m04s. A non-release build went from 2m26s to 1m28s.
2025-06-06bless test stderrJeremy Smart-2/+2
2025-06-07Auto merge of #142133 - GuillaumeGomez:rollup-fvzdren, r=GuillaumeGomezbors-873/+552
Rollup of 11 pull requests Successful merges: - rust-lang/rust#140418 (Reexport types from `c_size_t` in `std`) - rust-lang/rust#141471 (unsafe keyword docs: emphasize that an unsafe fn in a trait does not get to choose its safety contract) - rust-lang/rust#141603 (Reduce `ast::ptr::P` to a typedef of `Box`) - rust-lang/rust#142043 (Verbose suggestion to make param `const`) - rust-lang/rust#142086 (duduplicate more AST visitor methods) - rust-lang/rust#142103 (Update `InterpCx::project_field` to take `FieldIdx`) - rust-lang/rust#142105 (remove extraneous text) - rust-lang/rust#142112 (fix typo) - rust-lang/rust#142113 (Reduce confusion of some drop order tests) - rust-lang/rust#142114 (Compute number of digits instead of relying on constant value for u128 display code) - rust-lang/rust#142118 (rustc_lexer: typo fix + small cleanups) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-06fix testsJeremy Smart-4/+9
2025-06-06Correct the CC lint's documentationFélix Fischer-7/+14
2025-06-06Rollup merge of #142118 - hkBst:lexer-patch1, r=oli-obkGuillaume Gomez-10/+8
rustc_lexer: typo fix + small cleanups
2025-06-06Rollup merge of #142114 - GuillaumeGomez:u128-const, r=UrgauGuillaume Gomez-2/+2
Compute number of digits instead of relying on constant value for u128 display code As discussed in https://github.com/rust-lang/rust/pull/142098/files#r2132084991, the code should reuse the same logic as the rest of file instead of using a constant value. r? `@tamird`
2025-06-06Rollup merge of #142113 - shepmaster:drop-order-test-confusion, r=jieyouxuGuillaume Gomez-29/+18
Reduce confusion of some drop order tests In addition to adhering to normal Rust casing idioms, I ran `rustfmt`. Closes rust-lang/rust#141604 r? `@jieyouxu`
2025-06-06Rollup merge of #142112 - ada4a:patch-1, r=wesleywiserGuillaume Gomez-1/+1
fix typo