about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-07-07Make `Default` const and add some `const Default` implsEsteban Küber-168/+192
Full list of `impl const Default` types: - () - bool - char - Cell - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>
2025-07-08Mention more APIs in `ParseIntError` docsPavel Grigorenko-2/+5
2025-07-07Run `tests/rustdoc-json/attrs/target_features` on all hosts.Alona Enraght-Moony-2/+0
Makes it more convenient to test rustdoc on non x86_64. I mainly care about the aarch64 dev-desktops. This works because rustdoc uses all target features, not just that of the target.
2025-07-07Prepare for merging from rust-lang/rustJakub Beránek-0/+1
This updates the rust-version file to 1b61d43bdbf875183b1f436302d62ff93f9a6bba.
2025-07-07Add config files for `rustc-josh-sync`Jakub Beránek-0/+3
2025-07-07Update README.mdkilavvy-1/+1
- Update ui.md - Update type-alias-impl-trait.md - Update README.md
2025-07-07Remove std-detect dev dependency in core_archJakub Beránek-6/+2
2025-07-07Mark `avx` broadcast intrinsics as safeokaneco-7/+7
2025-07-07Use simd_extract! macro instead of calling simd_extract directlyltdk-6/+6
2025-07-07Update stabilization version of certain x86 intrinsics to 1.89Amanieu d'Antras-27/+27
These were left as `CURRENT_RUSTC_VERSION` in the submodule.
2025-07-07Add josh synchronization scriptsJakub Beránek-0/+817
2025-07-07Add empty rust-version fileJakub Beránek-0/+0
2025-07-07Make it possible to attach opaque string metadata to `StepMetadata`Jakub Beránek-2/+12
2025-07-07Remove support for dynamic allocasmejrs-4/+0
2025-07-07Remove support for dynamic allocasmejrs-86/+11
2025-07-07Auto merge of #143601 - matthiaskrgr:rollup-9iw2sqk, r=matthiaskrgrbors-1/+0
Rollup of 9 pull requests Successful merges: - rust-lang/rust#132469 (Do not suggest borrow that is already there in fully-qualified call) - rust-lang/rust#143340 (awhile -> a while where appropriate) - rust-lang/rust#143438 (Fix the link in `rustdoc.md`) - rust-lang/rust#143539 (Regression tests for repr ICEs) - rust-lang/rust#143566 (Fix `x86_64-unknown-netbsd` platform support page) - rust-lang/rust#143572 (Remove unused allow attrs) - rust-lang/rust#143583 (`loop_match`: fix 'no terminator on block') - rust-lang/rust#143584 (make `Machine::load_mir` infallible) - rust-lang/rust#143591 (Fix missing words in future tracking issue) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-07Auto merge of #143601 - matthiaskrgr:rollup-9iw2sqk, r=matthiaskrgrbors-76/+311
Rollup of 9 pull requests Successful merges: - rust-lang/rust#132469 (Do not suggest borrow that is already there in fully-qualified call) - rust-lang/rust#143340 (awhile -> a while where appropriate) - rust-lang/rust#143438 (Fix the link in `rustdoc.md`) - rust-lang/rust#143539 (Regression tests for repr ICEs) - rust-lang/rust#143566 (Fix `x86_64-unknown-netbsd` platform support page) - rust-lang/rust#143572 (Remove unused allow attrs) - rust-lang/rust#143583 (`loop_match`: fix 'no terminator on block') - rust-lang/rust#143584 (make `Machine::load_mir` infallible) - rust-lang/rust#143591 (Fix missing words in future tracking issue) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-07use preinterned symbolJared Davis-1/+1
fixes https://github.com/rust-lang/rust-clippy/actions/runs/16126736130/job/45505355614?pr=15222#logs
2025-07-07remove no longer used importJared Davis-1/+1
2025-07-07do not completely suppress warning with test codeJared Davis-4/+0
2025-07-07Add docstringAleksey Kliger-0/+4
2025-07-07Merge pull request #1 from sesgoe/ses/update-clippy-fix-13518Jared Davis-9/+91
fix: check against 'main' function name instead of entrypoint function
2025-07-07chore: add tests to check against the --test compile flagSes Goe-0/+65
2025-07-07fix: check against 'main' function name instead of entrypoint functionSes Goe-9/+26
update docs to be a bit more clear
2025-07-08Fix in String docs: remove 'else' from 'something else similar'Md. Yeasin Arafat-1/+1
2025-07-07configure.py: Write last key in each sectionAleksey Kliger-0/+4
The loop that writes the keys in each section of bootstrap.toml accumulates all the commented lines before a given key and emits them when it reaches the next key in the section. This ends up dropping lines accumulated for the last key
2025-07-07Merge pull request #20180 from ChayimFriedman2/parser-stuckLukas Wirth-8/+50
fix: Always bump in the parser in `err_and_bump()`
2025-07-07Clarify the meaning of `AttributeOrder::KeepFirst` and ↵Anne Stijns-1/+15
`AttributeOrder::KeepLast`
2025-07-07Rollup merge of #143591 - ehuss:future-typos, r=jieyouxuMatthias Krüger-2/+2
Fix missing words in future tracking issue Fixes some sloppy editing on my part.
2025-07-07Rollup merge of #143584 - fee1-dead-contrib:push-skswvrwsrmll, r=RalfJungMatthias Krüger-6/+6
make `Machine::load_mir` infallible it doesn't need to return an `InterpResult`.
2025-07-07Rollup merge of #143583 - folkertdev:loop-match-no-terminator-on-block, r=bjorn3Matthias Krüger-1/+34
`loop_match`: fix 'no terminator on block' tracking issue: https://github.com/rust-lang/rust/issues/132306 fixes https://github.com/rust-lang/rust/issues/143435 The argument `block` was not properly closed on an error path. r? `@bjorn3`
2025-07-07Rollup merge of #143572 - yotamofek:pr/unused-allow-attrs, r=fee1-deadMatthias Krüger-15/+0
Remove unused allow attrs These `#[allow]`s seem to be unused (at least according to `x check`, didn't run `x test` locally). Let's clean them up! 🧹
2025-07-07Rollup merge of #143566 - jieyouxu:fix-x86_64-unknown-netbsd, r=fee1-deadMatthias Krüger-15/+13
Fix `x86_64-unknown-netbsd` platform support page `x86_64-unknown-netbsd` is Tier 2 with host tools, not Tier 3. cc `@he32.` r? compiler
2025-07-07Rollup merge of #143539 - JonathanBrouwer:ice-regression-tests, r=oli-obkMatthias Krüger-0/+57
Regression tests for repr ICEs Closes https://github.com/rust-lang/rust/issues/143522 Closes https://github.com/rust-lang/rust/issues/143479 Both issues were already (accidentally) fixed in this PR, but having the tests is nice https://github.com/rust-lang/rust/pull/143252 r? `@jdonszelmann`
2025-07-07Rollup merge of #143438 - makai410:rustdoc-fix, r=ehussMatthias Krüger-1/+1
Fix the link in `rustdoc.md`
2025-07-07Rollup merge of #143340 - nabijaczleweli:awhile, r=mati865Matthias Krüger-29/+29
awhile -> a while where appropriate
2025-07-07Rollup merge of #132469 - estebank:issue-132041, r=NadrierilMatthias Krüger-7/+169
Do not suggest borrow that is already there in fully-qualified call When encountering `&str::from("value")` do not suggest `&&str::from("value")`. Fix #132041.
2025-07-07Fix a case where the link type was `None`Chayim Refael Friedman-3/+30
Which caused a panic.
2025-07-07Update intro blurb in `wasm32-wasip1` docsAlex Crichton-25/+23
I was reading over this documentation in light of the effort to enlist more maintainers for Tier 2 targets and figured it was time for a refresh of this documentation now that historical renames/etc have all become a thing of the past. No new major changes to this documentation, mostly just wanted to update it and reflect the modern status quo for this target.
2025-07-07Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubileebors-5/+5
Allow custom default address spaces and parse `p-` specifications in the datalayout string Some targets, such as CHERI, use as default an address space different from the "normal" default address space `0` (in the case of CHERI, [200 is used](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-877.pdf)). Currently, `rustc` does not allow to specify custom address spaces and does not take into consideration [`p-` specifications in the datalayout string](https://llvm.org/docs/LangRef.html#langref-datalayout). This patch tries to mitigate these problems by allowing targets to define a custom default address space (while keeping the default value to address space `0`) and adding the code to parse the `p-` specifications in `rustc_abi`. The main changes are that `TargetDataLayout` now uses functions to refer to pointer-related informations, instead of having specific fields for the size and alignment of pointers in the default address space; furthermore, the two `pointer_size` and `pointer_align` fields in `TargetDataLayout` are replaced with an `FxHashMap` that holds info for all the possible address spaces, as parsed by the `p-` specifications. The potential performance drawbacks of not having ad-hoc fields for the default address space will be tested in this PR's CI run. r? workingjubilee
2025-07-07Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubileebors-170/+416
Allow custom default address spaces and parse `p-` specifications in the datalayout string Some targets, such as CHERI, use as default an address space different from the "normal" default address space `0` (in the case of CHERI, [200 is used](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-877.pdf)). Currently, `rustc` does not allow to specify custom address spaces and does not take into consideration [`p-` specifications in the datalayout string](https://llvm.org/docs/LangRef.html#langref-datalayout). This patch tries to mitigate these problems by allowing targets to define a custom default address space (while keeping the default value to address space `0`) and adding the code to parse the `p-` specifications in `rustc_abi`. The main changes are that `TargetDataLayout` now uses functions to refer to pointer-related informations, instead of having specific fields for the size and alignment of pointers in the default address space; furthermore, the two `pointer_size` and `pointer_align` fields in `TargetDataLayout` are replaced with an `FxHashMap` that holds info for all the possible address spaces, as parsed by the `p-` specifications. The potential performance drawbacks of not having ad-hoc fields for the default address space will be tested in this PR's CI run. r? workingjubilee
2025-07-07Auto merge of #143182 - xdoardo:more-addrspace, r=workingjubileebors-5/+5
Allow custom default address spaces and parse `p-` specifications in the datalayout string Some targets, such as CHERI, use as default an address space different from the "normal" default address space `0` (in the case of CHERI, [200 is used](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-877.pdf)). Currently, `rustc` does not allow to specify custom address spaces and does not take into consideration [`p-` specifications in the datalayout string](https://llvm.org/docs/LangRef.html#langref-datalayout). This patch tries to mitigate these problems by allowing targets to define a custom default address space (while keeping the default value to address space `0`) and adding the code to parse the `p-` specifications in `rustc_abi`. The main changes are that `TargetDataLayout` now uses functions to refer to pointer-related informations, instead of having specific fields for the size and alignment of pointers in the default address space; furthermore, the two `pointer_size` and `pointer_align` fields in `TargetDataLayout` are replaced with an `FxHashMap` that holds info for all the possible address spaces, as parsed by the `p-` specifications. The potential performance drawbacks of not having ad-hoc fields for the default address space will be tested in this PR's CI run. r? workingjubilee
2025-07-07use `is_multiple_of` to check if an addr is alignedFolkert de Vries-4/+8
2025-07-07Port #[rustc_dummy]mejrs-1/+28
2025-07-07Respect endianness correctly in CheckEnums test suiteBastian Kersting-15/+14
The endianness can change the test expectation for the enum check. This change is fixing the failing tests on big endian by changing the tests so that they behave the same as on little endian.
2025-07-07move our data structures into a central locationRalf Jung-25/+26
2025-07-07Fix missing words in future tracking issueEric Huss-2/+2
Fixes some sloppy editing on my part.
2025-07-07UWP: link ntdll functions using raw-dylibChris Denton-62/+30
2025-07-07Merge pull request #20185 from ChayimFriedman2/variant-symbolsDavid Barsky-0/+75
feat: Include enum variants in world symbols
2025-07-07fix the link in `rustdoc.md`Makai-1/+1