about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-06Rollup merge of #144910 - ShoyuVanilla:add-regression-tests, r=fee1-deadJakub Beránek-0/+73
Add regression tests for seemingly fixed issues Closes rust-lang/rust#104314 Closes rust-lang/rust#125866
2025-08-06Rollup merge of #144836 - chotchki:patch-1, r=tgross35Jakub Beránek-1/+1
Change visibility of Args new function Currently the Args new function is constrained to pub(super) but this stops me from being able to construct Args structs in unit tests. This pull request is to change this to pub.
2025-08-06Rollup merge of #144676 - tiif:dev_guide_unstable_bound, r=BoxyUwUJakub Beránek-0/+3
Add documentation for unstable_feature_bound There is more detail and explanation in https://hackmd.io/``````@tiif/Byd3mq7Ige`````` Original PR that implemented this: rust-lang/rust#140399 r? ``````@BoxyUwU`````` to nominate for types team discussion
2025-08-06Rollup merge of #144552 - Oneirical:uncountable-integer-3, r=jieyouxuJakub Beránek-58/+89
Rehome 33 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` rust-lang/rust#143902 divided into smaller, easier to review chunks. Part of rust-lang/rust#133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer Inspired by the methodology that ``@Kivooeo`` was using. r? ``@jieyouxu``
2025-08-06Remove unneeded `stage` parameter when setting up stdlib CargoJakub Beránek-13/+9
2025-08-06Introduce ModernIdent type to unify macro 2.0 hygiene handlingxizheyin-44/+97
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-08-06handle bootstrap cfgsBoxy-34/+12
2025-08-06Auto merge of #143679 - sebastianpoeplau:preserve-debug-gdb-scripts-section, ↵bors-75/+77
r=bjorn3 Preserve the .debug_gdb_scripts section Make sure that compiler and linker don't optimize the section's contents away by adding the global holding the data to `llvm.used`. This eliminates the need for a volatile load in the main shim; since the LLVM codegen backend is the only implementer of the corresponding trait function, remove it entirely. Pretty printers in dylib dependencies are now emitted by the main crate instead of the dylib; apart from matching how rlibs are handled, this approach has the advantage that `omit_gdb_pretty_printer_section` keeps working with dylib dependencies. r? `@bjorn3`
2025-08-06Add a few missed entriesBoxy-2/+3
2025-08-06Fix suggestion for `collapsible_if` and `collapsible_else_if` when the inner ↵llogiq-4/+163
`if` is enclosed in parentheses (#15304) changelog: [`collapsible_else_if`]: fix suggestion when inner `if` as wrapped in parentheses changelog: [`collapsible_if`]: fix suggestion when inner `if` as wrapped in parentheses fixes https://github.com/rust-lang/rust-clippy/issues/15303 I'm sure this is a bit dirty, but don't currently see a better way.
2025-08-06mir: Do not modify NonUse in `super_projection_elem`dianqk-14/+20
2025-08-06Merge pull request #2537 from jdonszelmann/wasiJana Dönszelmann-1/+22
Add instructions to test wasi (wasm32-wasip1) specific tests
2025-08-06add note on how to build wasiJana Dönszelmann-1/+22
2025-08-06coverage: Remove all unstable support for MC/DC instrumentationZalathar-3046/+30
2025-08-06simplifycfg: Mark as changed when start is modified in collapse goto chaindianqk-0/+1
2025-08-06bump stage0Boxy-480/+500
2025-08-06replace version placeholderBoxy-34/+34
2025-08-06Embed GDB pretty printers in rlibs and dylibsSebastian Poeplau-33/+23
Instead of collecting pretty printers transitively when building executables/staticlibs/cdylibs, let the debugger find each crate's pretty printers via its .debug_gdb_scripts section. This covers the case where libraries defining custom pretty printers are loaded dynamically.
2025-08-06remove redundant _toml suffix and other misc changesbit-aloo-389/+371
2025-08-06Remove CSS bootstrap dependencyGuillaume Gomez-55/+325
2025-08-06Fix CSS indentGuillaume Gomez-12/+12
2025-08-06Add annotations to the graphviz region graph on region originsAmanda Stjerna-1/+15
This adds - (ex) for regions whose origin is existential, - (p) for regoins whose origin is a placeholder, and - (p for <name>) if the originating placeholder is named. This has helped _my_ debugging and it doesn't create too bad clutter, I feel. The change is ridiculously small, but I turned it into a separate PR so we can bikeshed the format.
2025-08-06expand the issue template for new lints (#15336)Philipp Krones-0/+21
When I first tried contributing to clippy, I encountered the problem that a lot of lint suggestions overlapped with existing lints, so I would spend a bunch of time implementing something only to figure out it wasn't actually needed. The "comparison with existing lints" field should hopefully reduce this somewhat, while not incresing the burden of requesting a new lint too much due to not being mandatory. changelog: none
2025-08-06Auto merge of #143684 - nikic:llvm-21, r=cuviperbors-3/+5
Update to LLVM 21 Timeline: LLVM 21.1.0 is scheduled to release on Aug 26th. Rust 1.90 branches on Aug 1st and releases September 18. Depends on: * [x] https://github.com/llvm/llvm-project/issues/147781 * [x] https://github.com/llvm/llvm-project/issues/147935 * [x] https://github.com/llvm/llvm-project/issues/139443 * [x] https://github.com/llvm/llvm-project/pull/148207 * [x] https://github.com/llvm/llvm-project/pull/148607 * [x] https://github.com/llvm/llvm-project/pull/149046 * [x] https://github.com/llvm/llvm-project/issues/149097 * [x] https://github.com/rust-lang/rust/pull/144116 r? `@ghost`
2025-08-06Rename some `PrettyPrinter` methods.Nicholas Nethercote-33/+33
More consistency.
2025-08-06Rename some `Printer` methods.Nicholas Nethercote-61/+71
I find these name clearer, and starting them all with `print_` makes things more consistent.
2025-08-06run-make: Allow blessing snapshot files that don't exist yetZalathar-1/+10
This makes it possible to bless the snapshot files used by `diff()` in newly-created run-make tests, without having to create the files manually beforehand.
2025-08-06Move `should_truncate` from trait `Printer` to sub-trait `PrettyPrinter`.Nicholas Nethercote-8/+8
It's not used in `Printer`.
2025-08-06Add comments to `Printer`.Nicholas Nethercote-17/+39
These details took me some time to work out.
2025-08-05Fix some doc links for intrinsicsEric Huss-4/+4
This fixes a few intrinsic docs that had a link directly to itself instead of to the correct function in the `mem` module.
2025-08-06Fortify generic param default checksLeón Orell Valerian Liehr-285/+297
2025-08-05Do not lint for `wildcard_imports` in external macro (#15413)Alejandra González-4/+26
Fixes rust-lang/rust-clippy#15412 changelog: [`wildcard_imports`]: do not lint code coming from an external macro
2025-08-05`File::set_times`: Add documentation about setting directory timestampsJosh Triplett-0/+4
Inspired by https://github.com/rust-lang/rust/issues/123883 .
2025-08-05`File::set_times`: Remove `write(true)` from the example so it works on ↵Josh Triplett-1/+1
directories Inspired by https://github.com/rust-lang/rust/issues/123883 .
2025-08-05configure: Use `CARGO_CFG_*_{F16,F128}` rather than invoking rustcTrevor Gross-47/+10
Currently we run the `rustc` from the `RUSTC` environment variable to figure out whether or not to enable `f16` and `f128`, based on the `target_has_reliable_{f16,f128}` config. However, this does not know about the codegen backend used, and the backend isn't trivial to check in a build script (usually it gets set via `RUSTFLAGS`). It turns out we don't actually need to run `rustc` here: Cargo unconditionally emits all config from the relevant compiler as `CARGO_CFG_*` variables, regardless of whether or not they are known options. Switch to checking these for setting config rather than invoking `rustc`. As an added advantage, this will work with target.json files without any special handling. Fixes: ed17b95715dd ("Use the compiler to determine whether or not to enable `f16` and `f128`")
2025-08-05Merge pull request #2534 from skrobchik/patch-1Manuel Drehwald-1/+1
Update installation.md
2025-08-05add code example showing that file_prefix treats dotfiles as the name of a ↵The 8472-0/+2
file, not an extension
2025-08-05Renamed `isolate_most_least_significant_one` functionsokaneco-38/+38
libs-api has agreed to rename these functions to `isolate_highest_one`/`isolate_lowest_one`
2025-08-05rustdoc: fix caching of intra-doc links on reexportsbinarycat-2/+60
2025-08-05Add aarch64_be-unknown-none-softfloat targetJens Reidel-0/+123
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-08-05Add `std::ascii::Char` `MIN` and `MAX` constantsChai T. Rex-0/+8
2025-08-05Add `u8`-as-ASCII methods to `core::ascii::Char`Chai T. Rex-1/+603
2025-08-05Auto merge of #144863 - cjgillot:live-or-dead, r=Urgaubors-274/+199
Simplify dead code lint This PR scratches a few itches I had when looking at that code. The perf improvement comes from keeping the `scanned` set through several marking phases. This pretty much divides by 2 the number of HIR traversals.
2025-08-05Fix description of unsigned `checked_exact_div`Michael Tautschnig-12/+6
Like its signed counterpart, this function does not panic. Also, fix the examples to document how it returns Some/None.
2025-08-05Dynamically enable LSE for aarch64 rust provided intrinsicsPaul Murphy-0/+27
Create a private module to hold the bootstrap code needed enable LSE at startup on aarch64-*-linux-* targets when rust implements the intrinsics. This is a bit more heavyweight than compiler-rt's LSE initialization, but has the benefit of initializing the aarch64 cpu feature detection for other uses. Using the rust initialization code does use some atomic operations, that's OK. Mixing LSE and non-LSE operations should work while the update flag propagates.
2025-08-05compiler-builtins: plumb LSE support for aarch64 on linuxPaul Murphy-10/+66
Add dynamic support for aarch64 LSE atomic ops on linux targets when optimized-compiler-builtins is not enabled. A hook, __enable_rust_lse, is provided for the runtime to enable them if available. A future patch will use this to enable them if available. The resulting asm should exactly match that of LLVM's compiler-rt builtins, though the symbol naming for the support function and global does not.
2025-08-05Stabilize `core::iter::chain`Ross MacArthur-6/+3
2025-08-05commentsKivooeo-73/+84
2025-08-05moved 35 tests to organized locationsKivooeo-0/+0
2025-08-05Use runtimes build for host compiler-rt buildNikita Popov-1/+3
The project build for compiler-rt is deprecated. The runtimes build will use the just-built clang. As such, we also need to pass --gcc-toolchain to the runtimes build, so that it can find the GCC installation.