rust/src/tools
Guillaume Gomez f948c79911
Rollup merge of #142472 - GuillaumeGomez:doc-attribute-attribute, r=fmease
Add new `doc(attribute = "...")` attribute

Fixes rust-lang/rust#141123.

The implementation and purpose of this new `#[doc(attribute = "...")]` attribute is very close to `#[doc(keyword = "...")]`. Which means that luckily for us, most of the code needed was already in place and `@Noratrieb` nicely wrote a first draft that helped me implement this new attribute very fast.

Now with all this said, there is one thing I didn't do yet: adding a `rustdoc-js-std` test. I added GUI tests with search results for attributes so should be fine but I still plan on adding one for it once documentation for builtin attributes will be written into the core/std libs.

You can test it [here](https://rustdoc.crud.net/imperio/doc-attribute-attribute/foo/index.html).

cc `@Noratrieb` `@Veykril`
2025-08-28 21:41:00 +02:00
..
build-manifest Rollup merge of #145729 - nnethercote:dup-packages, r=calebcartwright 2025-08-23 22:22:19 +02:00
bump-stage0 Remove toml-0.5.11 dependency. 2025-08-22 08:04:55 +10:00
cargo@a6c58d4305 Update cargo submodule 2025-08-26 21:00:10 -04:00
cargotest
clippy add a flag to codegen fn attrs for foreign items 2025-08-26 13:05:51 +02:00
collect-license-metadata collect-license-metadata: move JSON to root, and add a 'check' mode 2024-11-25 14:14:57 +00:00
compiletest Rollup merge of #145926 - Zalathar:no-libtest, r=jieyouxu 2025-08-28 23:10:35 +10:00
coverage-dump Add itertools to [workspace.dependencies]. 2025-08-27 14:21:21 +10:00
enzyme@58af4e9e6c update enzyme submodule to handle llvm 21 2025-08-07 16:31:00 -07:00
error_index_generator Move error_index_generator to the rustbook workspace 2025-02-17 10:58:15 -08:00
features-status-dump Remove backtrace dep from anyhow in features status dump tool 2025-05-01 07:45:47 -04:00
generate-copyright bump cargo_metadata 2025-07-27 12:47:39 +03:00
generate-windows-sys Update windows-bindgen to 0.61.0 2025-04-04 16:41:40 +00:00
html-checker rustdoc: add rustdoc top bar web component 2025-08-18 08:40:01 -07:00
jsondocck Compiletest: Simplify {Html,Json}DocCk directive handling 2025-07-13 16:00:23 +02:00
jsondoclint Add new doc(attribute = "...") attribute 2025-08-28 15:56:29 +02:00
libcxx-version
linkchecker add --link-targets-dir flag to linkchecker 2025-07-28 11:23:11 +02:00
lint-docs Rollup merge of #143631 - hkBst:update-escaper-2, r=compiler-errors 2025-07-17 10:41:45 +02:00
lld-wrapper
llvm-bitcode-linker Add tracing to [workspace.dependencies]. 2025-08-27 14:21:19 +10:00
miri add a flag to codegen fn attrs for foreign items 2025-08-26 13:05:51 +02:00
miropt-test-tools miropt: move to edition 2024 2025-07-22 15:02:34 +00:00
nix-dev-shell add static glibc to the nix dev shell 2025-08-15 16:16:25 +02:00
opt-dist Rollup merge of #143898 - ognevny:opt-dist-rustc-rebuild, r=Kobzol 2025-08-23 22:22:14 +02:00
remote-test-client remote-test-client: Exit code 128 + <signal-number> instead of 3 2025-07-04 20:44:26 +02:00
remote-test-server
replace-version-placeholder Include rustc and rustdoc book in replace-version-placeholder 2025-01-07 22:46:18 +01:00
run-make-support fix(compiler/rustc_codegen_llvm): apply target-cpu attribute 2025-08-13 17:49:06 +00:00
rust-analyzer remove P 2025-08-09 15:47:01 +08:00
rust-installer Update README.md 2025-06-29 12:29:28 +03:00
rustbook cargo update 2025-08-18 11:28:41 +00:00
rustc-perf@dde879cf10 Update rustc-perf submodule 2025-07-29 16:18:52 +02:00
rustdoc librustdoc: 2024 edition! 🎊 2025-03-04 12:35:18 +02:00
rustdoc-gui Update browser-ui-test version to 0.21.1 2025-07-03 18:08:23 +02:00
rustdoc-gui-test integrate build_helper::npm into js checks and package.json usage 2025-07-19 14:56:42 -05:00
rustdoc-js Strenghten rustdoc js tester file macthing regex 2025-08-19 15:08:57 +02:00
rustdoc-themes
rustfmt Rollup merge of #145766 - epage:rustfmt, r=calebcartwright 2025-08-26 14:19:17 +10:00
test-float-parse Remove uncessary parens in closure body with unused lint 2025-07-10 09:25:56 +08:00
tidy Use default locale fallback data 2025-08-28 09:48:54 +00:00
tier-check tiercheck: edition 2024 2025-07-14 08:30:27 +00:00
unicode-table-generator fix(unicode-table-generator): fix duplicated unique indices 2025-08-05 15:39:05 +02:00
unstable-book-gen Rollup merge of #141624 - jyn514:env-var-stubs, r=BoxyUwU 2025-08-10 19:45:45 +10:00
wasm-component-ld Update wasm-component-ld dependency 2025-08-25 13:50:45 -07:00
x x: use let-else 2025-07-11 05:38:05 +00:00
cherry-pick.sh
publish_toolstate.py Update toolstate maintainers 2025-01-23 09:55:21 -08:00