about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-08-22Add an experimental unsafe(force_target_feature) attribute.Luca Versari-3/+5
This uses the feature gate for https://github.com/rust-lang/rust/issues/143352, but is described in https://github.com/rust-lang/rfcs/pull/3820 which is strongly tied to the experiment.
2025-08-21unbox raw pointers in type-based searchbinarycat-3/+6
2025-08-21add special formatting for displaying raw pointers in signaturesbinarycat-2/+22
2025-08-21rustdoc search: accept *mut T syntax for raw pointersbinarycat-30/+45
2025-08-22Remove `toml-0.5.11` dependency.Nicholas Nethercote-2/+2
We also depend on `toml-0.7.8` and `toml-0.8.23`, but this one is easy to get rid of.
2025-08-22Remove `dirs-sys-0.4.1` dependency.Nicholas Nethercote-1/+1
By updating rustfmt to use `dirs-6.0.0`.
2025-08-21Rollup merge of #145704 - marcoieni:no-windows-disk-cleanup, r=jieyouxuJacob Pratt-239/+0
ci: don't cleanup windows disk
2025-08-21Rollup merge of #145703 - Gelbpunkt:ci-llvm-mips, r=KobzolJacob Pratt-4/+0
Remove MIPS targets from CI LLVM platforms All of these were demoted to tier 3 a while ago and we aren't building LLVM for them anymore.
2025-08-21Rollup merge of #145648 - bjorn3:tidy_deps_stricter, r=davidtwcoJacob Pratt-0/+33
Add two tidy dependency checks Deny duplicate dependencies for the standard library as it would almost certainly bloat executables. And deny proc-macro dependencies for the standard library as they would break cross-compilation.
2025-08-21Rollup merge of #145137 - Kmeakin:km/optimize-slice-index-panicking, r=jhprattJacob Pratt-1/+1
Consolidate panicking functions in `slice/index.rs` Consolidate all the panicking functions in `slice/index.rs` to use a single `slice_index_fail` function, similar to how it is done in `str/traits.rs`. Split off from https://github.com/rust-lang/rust/pull/145024
2025-08-21Rollup merge of #144541 - ↵Jacob Pratt-0/+1
folkertdev:c-variadic-same-program-multiple-abis-arm, r=RalfJung,davidtwco c-variadic: multiple ABIs in the same program for arm similar to https://github.com/rust-lang/rust/pull/144379, but for arm, requested in https://github.com/rust-lang/rust/pull/144066. Quoting https://github.com/rust-lang/reference/issues/1946#issuecomment-3124555690 > `"aapcs"` specifically refers to the soft-float ABI where floating-point values are passed in integer registers. However for c-variadic functions, `aapcs` behaves the same as `C`: https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#65parameter-passing > A variadic function is always marshaled as for the base standard. https://github.com/ARM-software/abi-aa/blob/main/aapcs32/aapcs32.rst#7the-standard-variants > This section applies only to non-variadic functions. For a variadic function the base standard is always used both for argument passing and result return. --- I also noticed that rustc currently emit more instructions than clang for c-variadic functions on arm, see https://godbolt.org/z/hMce9rnTh. I'll fix that separately. (edit: https://github.com/rust-lang/rust/pull/144549) try-job: armhf-gnu r? `@RalfJung`
2025-08-21make primitive:pointer work in type-based search.binarycat-2/+2
2025-08-21Merge pull request #20504 from ShoyuVanilla/ethereum-madnessChayim Refael Friedman-1/+58
fix: Infinite recursion while lowering assoc type bounds from supertraits
2025-08-22fix: Infinite recursion while lowering assoc type bounds from supertraitsShoyu Vanilla-1/+58
2025-08-21rustdoc::invalid_html_tags(unclosed comment): fix off by one in spanbinarycat-1/+1
2025-08-21refactor rustdoc::invalid_html_tags tag parserbinarycat-169/+381
previously, this lint did not distinguish between `<img` and `<img>`, and since the latter should be accepted under html5, the former was also accepted. the parser now also handles multi-line tags and multi-line attributes.
2025-08-21Remove unnecessary `salsa::attach()` callsChayim Refael Friedman-13/+7
2025-08-21CI: also test on powerpcRalf Jung-0/+5
2025-08-21Promote aarch64-pc-windows-msvc to Tier 1Daniel Paoliello-6/+3
2025-08-21update rustc-build-sysrootRalf Jung-3/+3
2025-08-21Losslessly optimize PNG fileslumiscosity-0/+0
Losslessly optimizes all of the PNG files in the repo. Done with: ``` oxipng -o max -a -s oxipng -o max --zopfli -a -s ```
2025-08-21Auto merge of #145647 - RalfJung:miri, r=RalfJungbors-51/+214
miri subtree update Subtree update of `miri` to https://github.com/rust-lang/miri/commit/980da679e4da038a723c56b2af892ff7ea0209fc. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-08-21Consolidate panicking functions in `slice/index.rs`Karl Meakin-1/+1
Consolidate all the panicking functions in `slice/index.rs` to use a single `slice_index_fail` function, similar to how it is done in `str/traits.rs`.
2025-08-21ci: don't cleanup windows diskMarcoIeni-239/+0
2025-08-21Remove MIPS targets from CI LLVM platformsJens Reidel-4/+0
All of these were demoted to tier 3 a while ago and we aren't building LLVM for them anymore. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-08-21Rollup merge of #145654 - Kobzol:gcc-ci-root, r=jieyouxuJacob Pratt-3/+3
Download CI GCC into the correct directory While doing various experiments with stage3 cross-compilations, I realized that bootstrap is unable to download LLVM from CI for a non-host target, which is quite annoying. Fixing this for LLVM will take some work, but in the meantime we can easily fix this for `download-ci-gcc`, which was implemented in a much more self-contained way.
2025-08-21Rollup merge of #145650 - GuillaumeGomez:fix-js-search-scripts-path, r=fmeaseJacob Pratt-2/+2
Fix JS search scripts path `rootPath` always end with a `/` so we should not add one. Interestingly enough, it only triggers the bug on a website (like https://doc.rust-lang.org/nightly/std/). Follow-up of https://github.com/rust-lang/rust/pull/144476. Fixes rust-lang/rust#145646. cc `````@notriddle````` r? `````@fmease`````
2025-08-21Rollup merge of #145590 - nnethercote:ModKind-Inline, r=petrochenkovJacob Pratt-9/+10
Prevent impossible combinations in `ast::ModKind`. `ModKind::Loaded` has an `inline` field and a `had_parse_error` field. If the `inline` field is `Inline::Yes` then `had_parse_error` must be `Ok(())`. This commit moves the `had_parse_error` field into the `Inline::No` variant. This makes it impossible to create the nonsensical combination of `inline == Inline::Yes` and `had_parse_error = Err(_)`. r? ```@Urgau```
2025-08-21Rollup merge of #145390 - joshtriplett:rustc-diag-value-earlier, r=lcnrJacob Pratt-5/+5
Shorten some dependency chains in the compiler (I recommend reviewing this commit by commit.) One of the long dependency chains in the compiler is: - Many things depend on `rustc_errors`. - `rustc_errors` depended on many things prior to this PR, including `rustc_target`, `rustc_type_ir`, `rustc_hir`, and `rustc_lint_defs`. - `rustc_lint_defs` depended on `rustc_hir` prior to this PR. - `rustc_hir` depends on `rustc_target`. - `rustc_target` is large and takes a while. This PR breaks that chain, through a few steps: - The `IntoDiagArgs` trait, from `rustc_errors`, moves earlier in the dependency chain. This allows `rustc_errors` to stop depending on a pile of crates just to implement `IntoDiagArgs` for their types. - Split `rustc_hir_id` out of `rustc_hir`, so crates that just need `HirId` and similar don't depend on all of `rust_hir` (and thus `rustc_target`). - Make `rustc_lint_defs` stop depending on `rustc_hir`.
2025-08-21Rollup merge of #145256 - GuillaumeGomez:bootstrap-test-codegen-backend, ↵Jacob Pratt-20/+103
r=Kobzol,bjorn3 Add new `--test-codegen-backend` bootstrap option This new bootstrap command line flag allows to do: ```shell ./x.py test tests/ui/intrinsics/panic-uninitialized-zeroed.rs --stage 1 -j8 --test-codegen-backend gcc ``` This is the last step before running it into the CI. Supersedes rust-lang/rust#144687. r? ``````@Kobzol``````
2025-08-21Attach the DB when mapping the result of `world_symbols()`Chayim Refael Friedman-6/+9
We call `try_to_nav()` there.
2025-08-21Merge ref '125ff8a788c5' from rust-lang/rustThe Miri Cronjob Bot-56/+190
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 125ff8a788c5d6a66917f499abdc00051afe6886 Filtered ref: bcbe2eb9c674ba7e35befb4557f33a1956964256 This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-21Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to 125ff8a788c5d6a66917f499abdc00051afe6886.
2025-08-21Attach the DB in symbol queriesChayim Refael Friedman-12/+16
2025-08-21move few complex initialization from config to parse-innerbit-aloo-49/+61
2025-08-20Move WTF-8 code from std to core/allocltdk-0/+1
2025-08-20Update test output for change to number of cratesJosh Triplett-5/+5
2025-08-20test(rustfmt): Verify frontmatter is preservedEd Page-0/+74
This is to prove that the frontmatter is preserved. The choices in tests is intended for showing the different parts of the proposed Style Guide for frontmatters.
2025-08-20make download context lean and remove mutable typesbit-aloo-79/+89
2025-08-20Merge pull request #2546 from lolbinarycat/patch-7nora-3/+3
Update bootstrapping docs to account for new stage meanings
2025-08-20Merge pull request #2549 from lumiscosity/optimize-imagesnora-0/+0
Losslessly optimize PNG files
2025-08-20remove unwanted references, and make more initialization inlinebit-aloo-22/+14
2025-08-20add explicit defaultsbit-aloo-4/+4
2025-08-20use local variables coming from toml, directly from tomlbit-aloo-11/+7
2025-08-20remove now not required _bit-aloo-115/+115
2025-08-20Auto merge of #145645 - Kobzol:uplift-fix, r=jieyouxubors-9/+82
Fix rustc uplifting (take two) The rustc uplifting logic is really annoying.. https://github.com/rust-lang/rust/pull/145557 was not enough to fix it. Consider https://github.com/rust-lang/rust/issues/145534#issuecomment-3201868888: in this situation, we do a stage3 build of a cross-compiled rustc (it happens because we run `x test --stage 2`, which mistakenly builds a stage3 rustc, but it doesn't matter what casuses it, what matters is that the stage3 build isn't working). Currently, a stage3 cross-compiled build of rustc works like this: 1) stage0 (host) -> stage1 (host) 2) stage1 (host) -> stage2 (host) 3) stage2 (host) -> stage3 (target) The problem is that in the uplifting logic, I assumed that we will have a stage2 (target) rustc available, which we can uplift. And that would indeed be an ideal solution. But currently, we will actually build a stage2 (*host*) rustc, and only then start the cross-compilation. So the uplifting is broken. I spend a couple of hours trying to fix this, and do the uplifting "from the other direction", so that already when we assemble a stage3 rustc, we notice that an uplift should happen, and we only build stage1 (host) rustc, which also helps avoid one needless rustc build. However, this was relatively complicated and would require larger changes that I was not confident landing at this time. So instead I decided to do a much simpler fix, and just disable rustc uplifting when cross-compiling. Since we currently do the `stage2 (host) -> stage3 (target)` step, it should not actually affect stage3 cross-compiled builds in any way (I hope..), and should only affect stage4+ builds, about which I don't really care (the only change there should be more rustc builds). For normal builds, the stage2 host rustc should (hopefully) always be present, so we shouldn't run into this issue. Eventually, I would like to remove rustc uplifting completely. However, `x test --stage 2` on CI still currently builds a stage3 rustc for some reason, and if we removed uplifting completely, even for non-cross-compiled builds, that would cause an additional rustc build, and that's not great. So for now let's just allow uplifting for non-cross-compiled builds. Fixes rust-lang/rust#145534. r? `@jieyouxu`
2025-08-20Fix JS search scripts pathGuillaume Gomez-2/+2
2025-08-20Download CI GCC into the correct directoryJakub Beránek-3/+3
2025-08-20Split compiletest `--codegen-backend` into two options ↵Guillaume Gomez-17/+33
`--default-codegen-backend` and `--override-codegen-backend`
2025-08-20Add new `--test-codegen-backend` bootstrap optionGuillaume Gomez-8/+75