rust/tests
Samuel Tardieu 4eddebd42b
Rollup merge of #143662 - obi1kenobi:pg/unsafe-attribute-wrappers, r=t-rustdoc
[rustdoc] Display unsafe attrs with edition 2024 `unsafe()` wrappers.

Use Rust 2024 edition representation for unsafe attributes in rustdoc HTML:
- `#[no_mangle]` -> `#[unsafe(no_mangle)]`
- `#[export_name = "foo"]` -> `#[unsafe(export_name = "foo")]`
- `#[link_section = ".text"]` -> `#[unsafe(link_section = ".text")]`

The 2024 edition representation is used regardless of the crate's own edition. This ensures that Rustaceans don't have to learn the rules of an outdated edition (e.g. that `unsafe()` wasn't always necessary) in order to understand a crate's documentation.

After some looking through the `T-rustdoc` issues, I was not able to find an existing issue for this. Apologies if I missed it.

r? ``````@aDotInTheVoid``````
2025-08-02 11:24:21 +02:00
..
assembly-llvm Relax check lines in x86-return-float.rs 2025-07-29 14:08:19 +02:00
auxiliary So many test updates x_x 2025-07-20 10:15:14 -07:00
codegen-llvm Rollup merge of #144232 - xacrimon:explicit-tail-call, r=WaffleLapkin 2025-07-31 15:42:00 +10:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage coverage: Re-land "Enlarge empty spans during MIR instrumentation" 2025-07-30 13:17:05 +10:00
coverage-run-rustdoc
crashes Auto merge of #144405 - lcnr:hir-typeck-uniquify, r=BoxyUwU 2025-07-31 00:32:55 +00:00
debuginfo Verify llvm-needs-components are not empty and match the --target value 2025-07-29 11:20:23 -07:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Remove the witness type from coroutine args 2025-07-31 17:38:28 +00:00
pretty expand: Micro-optimize prelude injection 2025-07-28 17:35:09 +03:00
run-make Rollup merge of #136840 - Flakebi:linker-plugin-lto-fat, r=dianqk 2025-07-31 13:12:45 +02:00
rustdoc Rollup merge of #143662 - obi1kenobi:pg/unsafe-attribute-wrappers, r=t-rustdoc 2025-08-02 11:24:21 +02:00
rustdoc-gui Update rustdoc GUI tests 2025-07-01 15:49:45 +02:00
rustdoc-js Add test for aliases partial match 2025-07-16 14:27:22 +02:00
rustdoc-js-std Add test for aliases partial match 2025-07-16 14:27:22 +02:00
rustdoc-json rustdoc-json: Move #[macro_export] from Other to it's own variant 2025-07-30 19:57:32 +00:00
rustdoc-ui Rollup merge of #132748 - lolbinarycat:rustdoc-intra-doc-link-warn-more-54191, r=GuillaumeGomez 2025-08-02 11:24:20 +02:00
ui Rollup merge of #143360 - folkertdev:const-continue-outside-loop-match, r=WaffleLapkin 2025-08-02 11:24:20 +02:00
ui-fulldeps use RustcPublic instead of StableMir 2025-07-18 18:49:32 +00:00
COMPILER_TESTS.md