Skip to content

Commit 14036c0

Browse files
authored
Unrolled build for #150022
Rollup merge of #150022 - GuillaumeGomez:rustc-macro-expansion, r=kobzol Generate macro expansion for rust compiler crates docs This enables the `--generate-macro-expansion` rustdoc flag, generating possibility to expand macros directly in source code pages (#137229). Needed this new feature when I was working on #149919 and I thought "why not enable it by default?". So here we go. Not too sure who to r? here so: r? ``@kobzol``
2 parents ed0006a + c820f46 commit 14036c0

File tree

1 file changed

+1
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-0
lines changed

src/bootstrap/src/core/build_steps/doc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ impl Step for Rustc {
932932
// see https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222
933933
// If there is any bug, please comment out the next line.
934934
cargo.rustdocflag("--generate-link-to-definition");
935+
cargo.rustdocflag("--generate-macro-expansion");
935936

936937
compile::rustc_cargo(builder, &mut cargo, target, &build_compiler, &self.crates);
937938
cargo.arg("-Zskip-rustdoc-fingerprint");

0 commit comments

Comments
 (0)