about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-08-23Rollup merge of #145782 - ↵Samuel Tardieu-70/+68
karolzwolak:rustdoc-consistent-attributes-rendering, r=GuillaumeGomez rustdoc: make attributes render consistently While working on rust-lang/rust#132304, I discovered that even standard attributes aren't consistently rendered. For some constructs/fields, attributes were missing entirely, and the attributes were only sometimes wrapped in a code-attribute divs so they appear greyed out. In short this PR: * makes attributes render inside code elements and inside divs with class `code-attribute` * renders attributes for macros, associated constants, and struct/union fields Attributes in `Fields` and `Variants` sections are still not rendered (see struct and enum screenshots), because I wasn't sure we want that. [Compirison of tests/rustdoc/attributes.rs](https://github.com/karolzwolak/rust/blob/90aa25a1c5dbae1e94099b1a2015dfb83783dbe0/tests/rustdoc/attributes.rs) Before (left) / after (right): <img width="279" height="97" alt="image" src="https://github.com/user-attachments/assets/baca4b75-f809-4a76-8ac1-e3aa6389aad4" /> <img width="363" height="112" alt="image" src="https://github.com/user-attachments/assets/14970fb0-6fe5-474f-983e-5a95e16175c5" /> <img width="368" height="492" alt="image" src="https://github.com/user-attachments/assets/f9a25583-10e3-49c7-961b-34f3587b552e" /> <img width="415" height="515" alt="image" src="https://github.com/user-attachments/assets/f2fe4aa0-c731-4f2f-a3c2-04e524a858d1" /> <img width="383" height="483" alt="image" src="https://github.com/user-attachments/assets/bccc1b6e-f236-4948-8557-f9b25cad8a07" /> <img width="402" height="528" alt="image" src="https://github.com/user-attachments/assets/2cea9250-37e1-439e-8010-0603905d0f52" /> <img width="372" height="485" alt="image" src="https://github.com/user-attachments/assets/cd49bc0a-90e1-4d08-af0f-084c42af1834" /> <img width="406" height="542" alt="image" src="https://github.com/user-attachments/assets/67fb4ac7-746b-4e20-9c80-97702a71def8" /> <img width="357" height="131" alt="image" src="https://github.com/user-attachments/assets/42769532-1e4d-486d-bdca-6ecc409554b9" /> <img width="366" height="161" alt="image" src="https://github.com/user-attachments/assets/0b4d01d4-dd8e-4467-8cfc-ad58200ba0d7" /> <img width="291" height="65" alt="image" src="https://github.com/user-attachments/assets/43f61335-8eff-491b-a297-1953d17bbfc0" /> <img width="259" height="57" alt="image" src="https://github.com/user-attachments/assets/598618a3-e52f-4a4e-b790-2c8d5f1b4c77" /> r? ``@GuillaumeGomez``
2025-08-23Rollup merge of #145781 - Kobzol:clippy-remove-profile, r=lqdSamuel Tardieu-7/+0
Remove profile section from Clippy To avoid workspace warnings. [This](https://github.com/rust-lang/rust/pull/145749) subtree sync started causing warnings in Rust builds (https://github.com/rust-lang/rust/issues/145777) because of the `profile` section in Clippy's `Cargo.toml` file. This profile section was added in https://github.com/rust-lang/rust-clippy/pull/13408 last year, and since it also caused issues then, it was later reverted. However, this change recently reappeared in [this commit](https://github.com/rust-lang/rust-clippy/commit/90364dd178b074db391649eed504564ac26f77c1), so it is again causing issues for rust-lang/rust. This PR removes the profile section again. Fixes: https://github.com/rust-lang/rust/issues/145777
2025-08-23Rollup merge of #145774 - Shourya742:2025-08-23-remove-default-opts-method, ↵Samuel Tardieu-53/+0
r=Kobzol Remove default opts from config We forgot to remove this method in https://github.com/rust-lang/rust/pull/145352. This PR removes that. r? ```@Kobzol```
2025-08-23Rollup merge of #145744 - RalfJung:miri-inplace-aliasing, r=compiler-errorsSamuel Tardieu-0/+95
miri: also detect aliasing of in-place argument and return place This is a follow-up to https://github.com/rust-lang/rust/pull/145585 where I forgot to deal with the case of the return place aliasing an in-place argument -- as ``@Amanieu`` mentioned in https://github.com/rust-lang/rust/issues/71117#issuecomment-3212885817, that case must also be forbidden. r? ``@compiler-errors``
2025-08-23Rollup merge of #145729 - nnethercote:dup-packages, r=calebcartwrightSamuel Tardieu-3/+3
Remove two duplicated crates These commits remove `toml-0.5.11` and `dirs-sys-0.4.1`. There are later versions of those same crates already in the tree. Found with `cargo tree -d`. r? ``@jieyouxu``
2025-08-23Rollup merge of #145540 - nia-e:prov-map-range, r=RalfJungSamuel Tardieu-8/+3
interpret/allocation: get_range on ProvenanceMap Helper method to grab all provenances in a given address range for an allocation, making some logic in Miri nicer.
2025-08-23Rollup merge of #143898 - ognevny:opt-dist-rustc-rebuild, r=KobzolSamuel Tardieu-2/+14
opt-dist: rebuild rustc when doing static LLVM builds when building LLVM it's obvious that in case of shared build rustc doesn't need to be recompiled, but with static builds it would be better to compile rustc again to ensure we linked proper library. maybe I didn't understand the pipeline correctly, but it was strange for me to see that in Stage 5 LLVM is built while rustc is not r? ```@Kobzol``` try-job: dist-x86_64-msvc try-job: dist-x86_64-linux
2025-08-23bootstrap.py: Improve CPU detection on NetBSD,Havard Eidnes-1/+12
...and add adaptation of detection for some arm variants.
2025-08-23Auto merge of #145567 - clubby789:cargo_update, r=clubby789bors-34/+38
Weekly `cargo update` (with libc pin) Supersedes rust-lang/rust#145516 Manually pins libc for `compiler` and `rustbook` (both of which use rustix), with fixmes to remove this later. ``` compiler & tools dependencies: Locking 28 packages to latest compatible versions Updating anyhow v1.0.98 -> v1.0.99 Updating bitflags v2.9.1 -> v2.9.2 Updating clap v4.5.43 -> v4.5.45 Updating clap_builder v4.5.43 -> v4.5.44 Updating clap_derive v4.5.41 -> v4.5.45 Updating curl v0.4.48 -> v0.4.49 Updating curl-sys v0.4.82+curl-8.14.1 -> v0.4.83+curl-8.15.0 Updating cxx v1.0.166 -> v1.0.168 Updating cxx-build v1.0.166 -> v1.0.168 Updating cxxbridge-cmd v1.0.166 -> v1.0.168 Updating cxxbridge-flags v1.0.166 -> v1.0.168 Updating cxxbridge-macro v1.0.166 -> v1.0.168 Updating glob v0.3.2 -> v0.3.3 Updating object v0.37.2 -> v0.37.3 Updating proc-macro2 v1.0.95 -> v1.0.101 Updating rayon v1.10.0 -> v1.11.0 Updating rayon-core v1.12.1 -> v1.13.0 Updating serde-untagged v0.1.7 -> v0.1.8 Updating socket2 v0.5.10 -> v0.6.0 Updating syn v2.0.104 -> v2.0.106 Updating thiserror v2.0.12 -> v2.0.15 Updating thiserror-impl v2.0.12 -> v2.0.15 Updating uuid v1.17.0 -> v1.18.0 Updating wasm-encoder v0.236.0 -> v0.236.1 Updating wasmparser v0.236.0 -> v0.236.1 Updating wast v236.0.0 -> v236.0.1 Updating wat v1.236.0 -> v1.236.1 note: pass `--verbose` to see 35 unchanged dependencies behind latest library dependencies: Locking 2 packages to latest compatible versions Updating libc v0.2.174 -> v0.2.175 Updating object v0.37.2 -> v0.37.3 note: pass `--verbose` to see 2 unchanged dependencies behind latest rustbook dependencies: Locking 13 packages to latest compatible versions Updating anyhow v1.0.98 -> v1.0.99 Updating bitflags v2.9.1 -> v2.9.2 Updating cc v1.2.32 -> v1.2.33 Updating clap v4.5.43 -> v4.5.45 Updating clap_builder v4.5.43 -> v4.5.44 Updating clap_complete v4.5.56 -> v4.5.57 Updating clap_derive v4.5.41 -> v4.5.45 Updating proc-macro2 v1.0.95 -> v1.0.101 Updating syn v2.0.104 -> v2.0.106 Updating terminal_size v0.4.2 -> v0.4.3 Updating thiserror v2.0.12 -> v2.0.15 Updating thiserror-impl v2.0.12 -> v2.0.15 ```
2025-08-23Enable LLVM download from CI for gnullvm distMateusz Mikuła-20/+2
It no longer fails with an error locally.
2025-08-23Enable LLVM tools for gnullvm distMateusz Mikuła-12/+4
This issue has been fixed by <https://github.com/rust-lang/rust/pull/145763>.
2025-08-23Auto merge of #145771 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo submodule 12 commits in 71eb84f21aef43c07580c6aed6f806a6299f5042..623d536836b4cde09ce38609232a024d5b25da81 2025-08-17 17:18:56 +0000 to 2025-08-22 19:05:52 +0000 - test(frontmatter): Match test updates in rustc (rust-lang/cargo#15878) - chore: fix some typos in comment (rust-lang/cargo#15877) - Add Arm64 Windows CI jobs (rust-lang/cargo#15790) - suggest workspace hints for boolean dependencies (rust-lang/cargo#15507) - make `UnitGenerator` public in cargo-as-a-library (rust-lang/cargo#15873) - Linting system (rust-lang/cargo#15865) - Switch to using native mdbook fragment redirects (rust-lang/cargo#15861) - docs(profile): revert wrong statement of lto options' optimization (rust-lang/cargo#15855) - docs: avoid ambiguity between update and fetch (rust-lang/cargo#15860) - docs: mention how Cargo fetch git submodules (rust-lang/cargo#15853) - feat(unstable): Added `-Zbuild-dir-new-layout` unstable feature (rust-lang/cargo#15848) - Implement `host`-target substitution (rust-lang/cargo#15838) r? ghost
2025-08-23Allow running rust-installer (and other tools) multiple times with the same ↵Jakub Beránek-0/+4
arguments
2025-08-23Use correct mode when printing a build message for std documentationJakub Beránek-1/+1
2025-08-23Merge pull request #4524 from Stypox/tracing-chrome-overhead-rdtscRalf Jung-78/+283
Account for time spent tracing, use RDTSC for faster time
2025-08-23citool: cleanup `mismatched_lifetime_syntaxes` warningsSamuel Tardieu-3/+3
2025-08-23Account for time spent tracing, use RDTSC for faster timeStypox-78/+283
2025-08-23Fix `else` completion in `let _ = if x {} $0`A4-Tacks-3/+355
2025-08-23Handle uplifting in libstd dist stepJakub Beránek-12/+23
2025-08-23Fix install test on WindowsJakub Beránek-2/+3
2025-08-23Remove the `x dist rust-std` built optimization special-caseJakub Beránek-27/+24
2025-08-23Don't try to cross-document bootstrap toolsJakub Beránek-1/+1
2025-08-23Fix doc linkJakub Beránek-1/+1
2025-08-23Add change tracker entryJakub Beránek-2/+7
2025-08-23Fix staging in `x install`Jakub Beránek-81/+77
2025-08-23Forbid running install steps on stage 0Jakub Beránek-0/+4
2025-08-23Cleanup the last few dist stepsJakub Beránek-5/+26
2025-08-23Cleanup `dist::Bootstrap` and add a simple test for itJakub Beránek-2/+21
2025-08-23Remove `compiler_for` from `dist::Extended`Jakub Beránek-17/+21
2025-08-23Remove `compiler_for` from `dist::Rustfmt`Jakub Beránek-13/+13
2025-08-23Remove `compiler_for` from `dist::CraneliftCodegenBackend`Jakub Beránek-12/+7
2025-08-23Remove `compiler_for` from `dist::Miri`Jakub Beránek-12/+13
2025-08-23Remove `compiler_for` from `dist::Clippy`Jakub Beránek-13/+16
2025-08-23Add snapshot test for `x install`Jakub Beránek-0/+70
2025-08-23Remove `compiler_for` from `dist::RustAnalyzer`Jakub Beránek-12/+16
2025-08-23Remove `compiler_for` from `dist::Cargo`Jakub Beránek-5/+12
2025-08-23Refactor `Analysis` dist stepJakub Beránek-14/+18
2025-08-23Refactor `RustcDev` dist stepJakub Beránek-12/+25
2025-08-23Refactor `Std` dist stepJakub Beránek-33/+62
2025-08-23Refactor and document the `DebuggerScripts` dist stepJakub Beránek-12/+13
2025-08-23Refactor and document the `Rustc` dist stepJakub Beránek-35/+42
2025-08-23Small refactor of `Mingw` stepJakub Beránek-12/+12
2025-08-23Document the `rustc-docs` stepJakub Beránek-9/+18
2025-08-23Rename `default_doc` to `run_default_doc_steps` and remove unused argumentJakub Beránek-6/+7
2025-08-23Forbid running dist steps on stage 0Jakub Beránek-0/+4
2025-08-23Re-add missing `clippy` testsJakub Beránek-0/+124
2025-08-23Improve code and add test with macro coming from another file from the same ↵Guillaume Gomez-35/+23
crate
2025-08-23rustdoc: make attributes render consistentlyKarol Zwolak-70/+68
* make attributes render inside code elements and inside divs with class `code-attribute` * render attributes for macros, associated constants, and struct/union fields
2025-08-23Remove profile section from ClippyJakub Beránek-7/+0
To avoid workspace warnings.
2025-08-23Rewrite try jobs section a bitJakub Beránek-23/+23