about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-06-20Merge from rustcThe Miri Cronjob Bot-1387/+4046
2025-06-20Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-19Avoid a bitcast FFI call in transmutingScott McMurray-2/+53
For things that only change the valid ranges, we can just skip the `LLVMBuildBitCast` call. I tried to tweak this a bit more and broke stuff, so I also added some extra tests for that as we apparently didn't have coverage.
2025-06-20Remove an unnecessary check in rustfmt.Nicholas Nethercote-1/+1
"{{root}}" is an internal-only name, and cannot appear in Rust code being formatted.
2025-06-20Avoid some unnecessary symbol interning.Nicholas Nethercote-1/+1
- `Ident::from_str_and_span` -> `Ident::new` when the string is pre-interned. - `Ident::from_str` -> `Ident::with_dummy_span` when the string is pre-interned. - `_d` and `_e` are unused.
2025-06-20Avoid some unnecessary symbol interning.Nicholas Nethercote-9/+10
- `Ident::from_str_and_span` -> `Ident::new` when the string is pre-interned. - `Ident::from_str` -> `Ident::with_dummy_span` when the string is pre-interned. - `_d` and `_e` are unused.
2025-06-20Use a symbol for `ExpansionConfig::crate_name`.Nicholas Nethercote-11/+12
This avoids some symbol interning and `to_string` conversions.
2025-06-20Fix `tests/ui/asm/naked-invalid-attr.stderr`.Nicholas Nethercote-3/+6
`{{root}}` is supposed to be an internal-only name but it shows up in the output. (I'm working towards a more general fix -- a universal "joiner" function that can be used all over the place -- but I'm not there yet, so let's fix this one in-place for now.)
2025-06-20Auto merge of #142294 - GuillaumeGomez:specialize-tostring-on-128-integers, ↵bors-94/+110
r=tgross35 Use a distinct `ToString` implementation for `u128` and `i128` Part of https://github.com/rust-lang/rust/issues/135543. Follow-up of rust-lang/rust#136264. When working on https://github.com/rust-lang/rust/pull/142098, I realized that `i128` and `u128` could also benefit from a distinct `ToString` implementation so here it. The last commit is just me realizing that I forgot to add the format tests for `usize` and `isize`. Here is the bench comparison: | bench name | last nightly | with this PR | diff | |-|-|-|-| | bench_i128 | 29.25 ns/iter (+/- 0.66) | 17.52 ns/iter (+/- 0.7) | -40.1% | | bench_u128 | 34.06 ns/iter (+/- 0.21) | 16.1 ns/iter (+/- 0.6) | -52.7% | I used this code to test: ```rust #![feature(test)] extern crate test; use test::{Bencher, black_box}; #[inline(always)] fn convert_to_string<T: ToString>(n: T) -> String { n.to_string() } macro_rules! decl_benches { ($($name:ident: $ty:ident,)+) => { $( #[bench] fn $name(c: &mut Bencher) { c.iter(|| convert_to_string(black_box({ let nb: $ty = 20; nb }))); } )+ } } decl_benches! { bench_u128: u128, bench_i128: i128, } ```
2025-06-20Merge pull request #4362 from nia-e/fix-alloc-perfRalf Jung-36/+72
isolated_alloc: directly use mmap for allocations
2025-06-19rustc_target: document public AbiMap-related fn and variantsJubilee Young-0/+6
2025-06-19docs(fs): Touch up grammar on lock apiEd Page-6/+6
2025-06-20Merge pull request #20035 from joshka/jm/test-explorer-colorHKalbasi-0/+1
Add --color=always to test explorer command
2025-06-20Make sure to rebuild rustdoc if `src/rustdoc-json-types` is changedJieyou Xu-1/+1
2025-06-19Make `Clone` a `const_trait`Daniel Bloom-2/+8
2025-06-19rustdoc: Remove `FormatRenderer::cache`Alona Enraght-Moony-12/+1
We only called it it one place, which isn't generic and can be replaced with a field access.
2025-06-19Add a mailmap entry for y21Trevor Gross-0/+1
2025-06-19Update library dependenciesTrevor Gross-6/+4
This bumps to the latest versions of `r-efi` and `r-efi-alloc`, which drop the dependency on `compiler_builtins` via crates.io. Part of [#142265]. [#142265]: https://www.github.com/rust-lang/rust/issues/142265
2025-06-19add issue template for rustdocbinarycat-0/+54
2025-06-19Add methods for converting bool to `Result<(), E>`LimpSquid-0/+76
2025-06-19Apply impl_super_outlives optimization to new trait solverMichael Goulet-9/+20
2025-06-19Fix `non_copy_const` ICE (#15083)llogiq-1/+17
fixes rust-lang/rust-clippy#15069 ---- changelog: none
2025-06-19Fix `clippy::question_mark` on let-else with cfg (#15082)Samuel Tardieu-0/+25
Fixes rust-lang/rust-clippy#13642 changelog: Fix false positive in [`question_mark`] when else branch of let-else contains `#[cfg]`
2025-06-19Merge pull request #2477 from rust-lang/rustc-pullTshepang Mbambo-28452/+45537
Rustc pull update
2025-06-19Fix `non_copy_const` ICEJason Newcomb-1/+17
2025-06-19Fix unsoundness in some testsBenoît du Garreau-2/+2
2025-06-19Auto merge of #140748 - m-ou-se:super-format-args3, r=jdonszelmannbors-392/+296
Allow storing `format_args!()` in variable Fixes https://github.com/rust-lang/rust/issues/92698 Tracking issue for super let: https://github.com/rust-lang/rust/issues/139076 Tracking issue for format_args: https://github.com/rust-lang/rust/issues/99012 This change allows: ```rust let name = "world"; let f = format_args!("hello {name}!"); // New: Store format_args!() for later! println!("{f}"); ``` This will need an FCP. This implementation makes use of `super let`, which is unstable and might not exist in the future in its current form. However, it is entirely reasonable to assume future Rust will always have _a_ way of expressing temporary lifetimes like this, since the (stable) `pin!()` macro needs this too. (This was also the motivation for merging https://github.com/rust-lang/rust/pull/139114.) (This is a second version of https://github.com/rust-lang/rust/pull/139135)
2025-06-19Auto merge of #140748 - m-ou-se:super-format-args3, r=jdonszelmannbors-52/+47
Allow storing `format_args!()` in variable Fixes https://github.com/rust-lang/rust/issues/92698 Tracking issue for super let: https://github.com/rust-lang/rust/issues/139076 Tracking issue for format_args: https://github.com/rust-lang/rust/issues/99012 This change allows: ```rust let name = "world"; let f = format_args!("hello {name}!"); // New: Store format_args!() for later! println!("{f}"); ``` This will need an FCP. This implementation makes use of `super let`, which is unstable and might not exist in the future in its current form. However, it is entirely reasonable to assume future Rust will always have _a_ way of expressing temporary lifetimes like this, since the (stable) `pin!()` macro needs this too. (This was also the motivation for merging https://github.com/rust-lang/rust/pull/139114.) (This is a second version of https://github.com/rust-lang/rust/pull/139135)
2025-06-19Preserve Paren expression's attributes during UnparenthesizeDavid Tolnay-0/+5
2025-06-19Fix typo (#15081)Samuel Tardieu-1/+1
Add missing word (attribute) after the `#[expect]` attribute. changelog: [`allow_attributes`]: Fix typo in documentation
2025-06-19Fix `clippy::question_mark` on let-else with cfgMax Siling-0/+25
2025-06-19Check MSRV before suggesting applying `const` to a function (#15080)Jason Newcomb-1/+199
If a function environment contains trait bounds other than `Sized`, `const` cannot be used before Rust 1.61. changelog: [`missing_const_for_fn`]: check MSRV before emitting lint on function containing non-`Sized` trait bounds Fixes rust-lang/rust-clippy#15079 r? Jarcho
2025-06-19Extract SilentEmitterCameron Steffen-52/+30
2025-06-19Rename SilentEmitter -> FatalOnlyEmitterCameron Steffen-10/+10
2025-06-19Extract Translator structCameron Steffen-3/+2
2025-06-19Extract Translator structCameron Steffen-250/+190
2025-06-19mbe: Refactor transcriptionTrevor Gross-348/+389
Introduce `MacroTcbCtx` that holds everything relevant to transcription. This allows for the following changes: * Split `transcribe_sequence` and `transcribe_metavar` out of the heavily nested `transcribe` * Split `metavar_expr_concat` out of `transcribe_metavar_expr` This is a nonfunctional change.
2025-06-19mbe: Move `transcribe_metavar_expr` directly after `transcribe`Trevor Gross-96/+96
Be more consistent with the otherwise top-down organization of this file.
2025-06-19Improve diagnostics for `concat_bytes!` with C string literalsTrevor Gross-43/+86
Use the same error as other invalid types for `concat_bytes!`, rather than using `ConcatCStrLit` from `concat!`. Also add more information with a note about why this doesn't work, and a suggestion to use a null-terminated byte string instead.
2025-06-19Add `fn parent(self, db) -> GenericDef` to `hir::TypeParam`Vincent Esche-0/+4
2025-06-19wasm: rm static mutMarijn Schouten-7/+10
2025-06-19expose abi information on ppc64 targetsostylk-1/+9
2025-06-19Add #[track_caller] to String methods that assert inputsKornel-0/+6
2025-06-19Let String pass #[track_caller] to its Vec callsKornel-0/+17
2025-06-19s390x: add feature detection for the z17 target featuresFolkert de Vries-56/+97
2025-06-19the `generic_arg_infer` feature is now stable on nightlyFolkert de Vries-1/+0
2025-06-19Fix typoEverett Pompeii-1/+1
Add missing word (attribute) after the `#[expect]` attribute.
2025-06-19De-dup common code from `ExternalCrate` methodsYotam Ofek-71/+53
2025-06-19Auto merge of #141864 - Berrysoft:cygwin-path, r=ChrisDentonbors-173/+772
Handle win32 separator for cygwin paths This PR handles a issue that cygwin actually supports Win32 path, so we need to handle the Win32 prefix and separaters. r? `@mati865` cc `@jeremyd2019` ~~Not sure if I should handle the prefix like the windows target... Cygwin *does* support win32 paths directly going through the APIs, but I think it's not the recommended way.~~ Here I just use `cygwin_conv_path` because it handles both cygwin and win32 paths correctly and convert them into absolute POSIX paths. UPDATE: Windows path prefix is handled.
2025-06-19Fix `exhaustive_structs` FP on structs with default valued field (#15022)Catherine Flores-6/+20
Closes rust-lang/rust-clippy#14992 changelog: [`exhaustive_structs`] fix FP on structs with default valued field