rust/compiler/rustc_span/src
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
..
analyze_source_file Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
edit_distance update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
source_map Take into-account -Zremap-path-scope when embedding filenames 2025-05-05 19:45:34 +02:00
symbol Introduce ByteSymbol. 2025-06-30 20:42:27 +10:00
analyze_source_file.rs Update cfg(bootstrap) 2025-07-01 10:55:49 -07:00
caching_source_map_view.rs Simplify span_data_to_lines_and_cols. 2025-08-16 16:23:21 +00:00
def_id.rs Hash less while hashing def-ids. 2025-06-22 20:29:39 +00:00
edit_distance.rs use div_ceil instead of manual logic 2025-07-05 10:55:42 +02:00
edition.rs Unify the format of rustc cli flags 2025-04-24 12:54:40 +08:00
fatal_error.rs Auto merge of #117557 - Zoxc:panic-prio, r=petrochenkov 2023-11-09 00:39:02 +00:00
hygiene.rs Rollup merge of #144478 - joshtriplett:doc-code-formatting-prep, r=Amanieu 2025-08-02 11:24:24 +02:00
lib.rs Introduce ModernIdent type to unify macro 2.0 hygiene handling 2025-08-06 21:19:09 +08:00
profiling.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
source_map.rs Do not open every source file twice when reading it 2025-08-25 20:40:11 +02:00
span_encoding.rs Fix doc-comment. 2025-08-10 23:01:45 +00:00
symbol.rs Rollup merge of #142472 - GuillaumeGomez:doc-attribute-attribute, r=fmease 2025-08-28 21:41:00 +02:00
tests.rs add unstable support for outputting file checksums for use in cargo 2024-10-01 21:23:20 -06:00