Files
rust/src
Jacob Pratt 084a82eec7 Rollup merge of #154902 - shivendra02467:fix-rustdoc-macro-inline, r=lolbinarycat
rustdoc: Inherit inline attributes for declarative macros

When explicitly re-exporting a declarative macro by name, rustdoc previously bypassed intermediate re-exports and dropped `#[doc(inline)]` attributes, causing the macro to be incorrectly stripped if the original definition was `#[doc(hidden)]`.

This updates `generate_item_with_correct_attrs` to walk the `reexport_chain` specifically for declarative macros, allowing them to inherit inline attributes exactly as glob imports do, while preserving strict visibility rules for standard items.

Fixes rust-lang/rust#154694
2026-04-07 23:05:32 -04:00
..
2026-04-05 04:11:36 -05:00
2026-02-14 16:59:09 +01:00
2026-03-07 10:42:02 -08:00
2026-02-27 09:38:23 -08:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.