about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-06Make `LetChainsPolicy` public for rustfmt usageMoritz Hedtke-1/+3
2025-09-06Auto merge of #146232 - bjorn3:lto_allocator_shim, r=lqdbors-29/+79
Make the allocator shim participate in LTO again This is likely the cause of the perf regression in https://github.com/rust-lang/rust/pull/145955. It also caused some functional regressions. Fixes https://github.com/rust-lang/rust/issues/146235 Fixes https://github.com/rust-lang/rust/issues/146239
2025-09-06Update comment for werror on rust-lang/rust CI explaining why we keep MSVC ↵Romain Perier-4/+4
definitively excluded
2025-09-06identity uses are ok, even if there are no defining useslcnr-1/+71
2025-09-06Merge pull request #1913 from folkertdev/s390x-vector-funnel-shiftSayantan Chakraborty-15/+5
s390x: use the new `u128::funnel_shl`
2025-09-06Ensure fat LTO doesn't merge everything into the allocator modulebjorn3-3/+21
2025-09-06Add test that __rg_oom doesn't get internalized during LTObjorn3-0/+19
Co-Authored-By: Rémy Rakic <remy.rakic+github@gmail.com>
2025-09-06s390x: use the new `u128::funnel_shl`Folkert de Vries-15/+5
2025-09-06Add socket extensions for cygwinBerrysoft-57/+131
2025-09-06Auto merge of #146267 - matthiaskrgr:rollup-tbz7shx, r=matthiaskrgrbors-53/+232
Rollup of 5 pull requests Successful merges: - rust-lang/rust#127316 (move pinned version from tracing_core to tracing) - rust-lang/rust#144801 (Suggest bounds in more cases, accounting for type parameters referenced in predicate) - rust-lang/rust#146211 (Disallow shebang in `--cfg` and `--check-cfg` arguments) - rust-lang/rust#146263 (Fix `bump-stage0` build failure, and check-build `bump-stage0` in CI) - rust-lang/rust#146266 (miri std tests: skip all of sys::) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-06Rollup merge of #146266 - RalfJung:miri-nosys, r=jieyouxuMatthias Krüger-1/+1
miri std tests: skip all of sys:: Matches https://github.com/rust-lang/miri-test-libstd/pull/104
2025-09-06Rollup merge of #146263 - jieyouxu:check-bump-stage0, r=KobzolMatthias Krüger-3/+15
Fix `bump-stage0` build failure, and check-build `bump-stage0` in CI This PR bumps the `toml` dependency of the `bump-stage0` tool to `0.8.23`, which AFAICT is the highest `toml` version that's present in the r-l/r workspace's `Cargo.lock` already (so we don't introduce _another_ `toml 0.x.*` series). I added some byte-buffer-to-string intermediary to workaround `toml 0.8.*` not having the `toml 0.9.*` `toml::from_slice` API. To catch obvious build failures of the `src/tools/bump-stage0` tool early, before we find out it can't even build when we really need it to work. Contexts: - https://github.com/rust-lang/rust/pull/146250#issue-3388327410 - [#t-release > Bump stage0 rustfmt separately ("one-off") @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/241545-t-release/topic/Bump.20stage0.20rustfmt.20separately.20.28.22one-off.22.29/near/537916615) Fixes rust-lang/rust#146252.
2025-09-06Rollup merge of #146211 - Urgau:cfg-disallow-shebang, r=fmeaseMatthias Krüger-29/+75
Disallow shebang in `--cfg` and `--check-cfg` arguments This PR is similar to https://github.com/rust-lang/rust/issues/146130, where we disallowed frontmatter in `--cfg` and `--check-cfg` arguments. While fixing the other one we also discovered that shebang `#!/usr/bin/shebang` are currently also allowed in `--cfg` and `--check-cfg` arguments. Allowing shebang in them (which are just ignored) was never intended, this PR fixes that by not stripping shebang for `--cfg` and `--check-cfg` arguments. This is technically a breaking-change, although I don't expect anyone to actually rely on this unintended behavior. Fixes https://github.com/rust-lang/rust/issues/146130#issuecomment-3246299499 r? fmease
2025-09-06Rollup merge of #144801 - estebank:issue-144734, r=spastorinoMatthias Krüger-14/+136
Suggest bounds in more cases, accounting for type parameters referenced in predicate Use a `ty::Visitor` to see if the failed predicate references a type parameter. If it does, then we only suggest adding a bound to an (associated) item only if the referenced parameter is present in its generics. Provide adding bound suggestion in trait and impl associated functions in cases we previously weren't: ``` error[E0277]: `?` couldn't convert the error to `ApplicationError` --> $DIR/suggest-complex-bound-on-method.rs:18:16 | LL | t.run()?; | -----^ the trait `From<<T as Trait>::Error>` is not implemented for `ApplicationError` | | | this can't be annotated with `?` because it has type `Result<_, <T as Trait>::Error>` | note: `ApplicationError` needs to implement `From<<T as Trait>::Error>` --> $DIR/suggest-complex-bound-on-method.rs:12:1 | LL | enum ApplicationError { | ^^^^^^^^^^^^^^^^^^^^^ = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement | LL | fn thing<T: Trait>(&self, t: T) -> Result<(), ApplicationError> where ApplicationError: From<<T as Trait>::Error> { | +++++++++++++++++++++++++++++++++++++++++++++++++ ``` Fix rust-lang/rust#144734.
2025-09-06Rollup merge of #127316 - klensy:tracing-bump, r=KobzolMatthias Krüger-6/+5
move pinned version from tracing_core to tracing This PR removes pin from `tracing-core` and moves it to `tracing`, which regressed perf in > 0.1.37 versions.
2025-09-06Split out each lint into a separate moduleAda Alakbarova-324/+356
Best viewed with `git diff --color-moved`
2025-09-06Move `derive.rs` to `derive/mod.rs`Ada Alakbarova-0/+0
Will hopefully make the next commit's diff somewhat easier to understand
2025-09-06remove `has_lifetime`Ada Alakbarova-15/+1
It's now redundant to `same_lifetimes`: if `ty` and `impl_ty` are the same type, and they both have no lifetimes, `same_lifetimes` will return `true` already
2025-09-06fix(use_self): descend into type's children when looking for lifetimesAda Alakbarova-13/+37
This unfortunately breaks another test case -- it had only worked because when we checked `!has_lifetime` on `S2<S<'a>>`, we only looked for generic lifetime params on `S2`, forgetting to descend into `S`. One thing that makes this a bit less sad is that this particular test case doesn't come from a reported issue, but rather was added as a miscellaneous check during a kind of unrelated PR.
2025-09-06clean-up a bitAda Alakbarova-69/+64
Notably, rename `same_type_and_consts` to `same_type_modulo_regions` to be more explicit about the function ignoring lifetimes
2025-09-06fix(transmute_ptr_to_ref): don't suggest `.cast` when to-type is DSTAda Alakbarova-2/+130
2025-09-06miri std tests: skip all of sys::Ralf Jung-1/+1
2025-09-06Make the allocator shim participate in LTO againbjorn3-26/+39
2025-09-06ci: check `src/tools/bump-stage0` in `pr-check-2`Jieyou Xu-0/+1
To catch obvious build failures of the `src/tools/bump-stage0` early, before we find out it can't even build when we really need it to work.
2025-09-06bootstrap: add check step for `src/tools/bump-stage0`Jieyou Xu-0/+7
2025-09-06bump-stage0: pick highest common `toml` version, add a workaroundJieyou Xu-3/+7
- We pick the higest common `toml` version used in the r-l/r workspace to avoid introducing Yet Another `toml` `0.x` version, which happens to be `0.8.23` as of the time of writing. - We introduce a byte-buffer-to-string workaround for the `toml 0.8.*` series that do not have the `toml 0.9.*` series's `toml::from_slice` API yet. Not efficient, but this is not perf-critical so it's fine.
2025-09-06Auto merge of #146253 - Kobzol:cargo-lto, r=jieyouxubors-2/+4
Optimize Cargo with LTO This optimization was "lost" when Cargo was switched away from a `ToolRustcPrivate` to a `ToolTarget` tool. r? `@jieyouxu`
2025-09-06Add allow `else` keyword completion in LetStmtA4-Tacks-17/+220
Example --- ```rust fn foo() { let _ = 2 el$0 } ``` -> ```rust fn foo() { let _ = 2 else { $0 }; } ```
2025-09-06point to Compiler team docs on ForgeTshepang Mbambo-0/+4
2025-09-06Merge pull request #2579 from rust-lang/tshepang/overlongTshepang Mbambo-20/+51
reduce overlong physical lines (sembr)
2025-09-06reduce overlong physical lines (sembr)Tshepang Mbambo-20/+51
2025-09-06Auto merge of #146071 - npmccallum:cleanup, r=fmeasebors-110/+59
clean up some old const trait impl syntax Related to: https://github.com/rust-lang/rust/issues/143874
2025-09-06Merge pull request #2578 from rust-lang/tshepang/streams-renamedTshepang Mbambo-17/+17
Zulip streams were renamed over a year ago
2025-09-06capitalize "zulip"Tshepang Mbambo-7/+7
2025-09-06Zulip streams have been renamed to channelsTshepang Mbambo-11/+11
https://blog.zulip.com/2024/07/25/zulip-9-0-released
2025-09-06clean up some old const trait impl syntaxNathaniel McCallum-110/+59
2025-09-05Some hygiene doc improvementsCameron Steffen-12/+22
2025-09-05Ignore intrinsic calls in cross-crate-inlining cost modelBen Kimock-1/+25
2025-09-06Auto merge of #146258 - tgross35:rollup-4hqggwa, r=tgross35bors-31/+149
Rollup of 2 pull requests Successful merges: - rust-lang/rust#146199 (Document Cargo with in-tree rustdoc) - rust-lang/rust#146257 (std: Update `wasi` crate dependency) Failed merges: - rust-lang/rust#146200 (Simplify rustdoc-gui tester by calling directly browser-ui-test) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-05Rollup merge of #146257 - alexcrichton:update-wasi-crate, r=tgross35Trevor Gross-4/+4
std: Update `wasi` crate dependency The recent work on the WASIp2 target being integrated into the standard library (rust-lang/rust#146207, rust-lang/rust#145944) ended up causing a bug in nightly on the target. This [has now been fixed](https://github.com/bytecodealliance/wasi-rs/pull/115) in the `wasi` crate so this commit pulls in the updated version to ensure bindings work correctly.
2025-09-05Rollup merge of #146199 - Kobzol:bootstrap-cargo-doc, r=jieyouxuTrevor Gross-27/+145
Document Cargo with in-tree rustdoc Fixes https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/nightly.20rust.20doc.20seem.20corrupted. r? `@jieyouxu` try-job: dist-x86_64-linux-alt
2025-09-05std: Update `wasi` crate dependencyAlex Crichton-4/+4
The recent work on the WASIp2 target being integrated into the standard library ended up causing a bug in nightly on the target. This has now been fixed in the `wasi` crate so this commit pulls in the updated version to ensure bindings work correctly.
2025-09-06Disallow shebang in `--cfg` and `--check-cfg` argumentsUrgau-29/+75
2025-09-05Auto merge of #146255 - fmease:rollup-1v0kp8i, r=fmeasebors-202/+1329
Rollup of 11 pull requests Successful merges: - rust-lang/rust#138944 (Add `__isPlatformVersionAtLeast` and `__isOSVersionAtLeast` symbols) - rust-lang/rust#139113 (unstable book: in a sanitizer example, check the code) - rust-lang/rust#145735 (style-guide: Document absence of trailing whitespace) - rust-lang/rust#146041 (tidy: --bless now makes escheck run with --fix) - rust-lang/rust#146144 (compiler: Apply target features to the entry function) - rust-lang/rust#146225 (Simplify `{f16, f32, f64, f128}::midpoint()`) - rust-lang/rust#146234 (change file-is-generated doc comment to inner) - rust-lang/rust#146241 (rustc_infer: change top-level doc comment to inner) - rust-lang/rust#146242 (Ensure that `--html-after-content` option is used to check `scrape_examples_ice` rustdoc GUI test) - rust-lang/rust#146243 (remove couple of redundant clones) - rust-lang/rust#146250 (Bump stage0 rustfmt) Failed merges: - rust-lang/rust#146200 (Simplify rustdoc-gui tester by calling directly browser-ui-test) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-05Rollup merge of #146250 - fmease:bump-stage0-rustfmt, r=Mark-SimulacrumLeón Orell Valerian Liehr-121/+121
Bump stage0 rustfmt Unblocks rust-lang/rust#146071, cc `@npmccallum.` Steps to reproduce: 1. Temporarily upgrade `src/tools/bump-stage0`'s `toml` dependency from 0.7 to 0.9 to fix build error (see Zulip topic) 2. Execute `./x run src/tools/bump-stage0` 3. Manually revert changes unrelated to nightly `rustfmt`+`rustc` (the latter needs to be bumped, too, for the driver ([via](https://github.com/rust-lang/rust/pull/146250#discussion_r2325742775))) r? `@Mark-Simulacrum` as discussed in [#t-release > Bump stage0 rustfmt separately ("one-off")](https://rust-lang.zulipchat.com/#narrow/channel/241545-t-release/topic/Bump.20stage0.20rustfmt.20separately.20.28.22one-off.22.29/with/537916615)
2025-09-05Rollup merge of #146243 - matthiaskrgr:declone, r=lqdLeón Orell Valerian Liehr-4/+4
remove couple of redundant clones
2025-09-05Rollup merge of #146242 - GuillaumeGomez:rustdoc-gui-scrape, r=lolbinarycatLeón Orell Valerian Liehr-2/+4
Ensure that `--html-after-content` option is used to check `scrape_examples_ice` rustdoc GUI test Follow-up of https://github.com/rust-lang/rust/pull/146091. This test ensures that the spans are correctly handled when a "local source file" is not the first in the file list. To ensure it's actually what's tested, this test checks that the option is actually used by adding an element. r? `@lolbinarycat`
2025-09-05Rollup merge of #146241 - hkBst:context-1, r=jieyouxuLeón Orell Valerian Liehr-1/+1
rustc_infer: change top-level doc comment to inner
2025-09-05Rollup merge of #146234 - hkBst:file-generated-header, r=tgross35León Orell Valerian Liehr-2/+2
change file-is-generated doc comment to inner Alternatively this could perhaps be better as a normal comment...
2025-09-05Rollup merge of #146225 - Jules-Bertholet:simplify-float-midpoint, r=tgross35León Orell Valerian Liehr-32/+0
Simplify `{f16, f32, f64, f128}::midpoint()` `(float_ty::MAX / 2) - (float_ty::MIN_POSITIVE * 2)` equals `(float_ty::MAX / 2) + (float_ty::MIN_POSITIVE * 2)` equals `(float_ty::MAX / 2)`. So these branches are pointless. CC `@Urgau` who wrote the original implementation in https://github.com/rust-lang/rust/pull/92048; does this seem right? `@rustbot` label A-floating-point