Skip to content

Commit 594cb93

Browse files
committed
docs: clarify that extra flags also applies to rustdoc
1 parent 7d6172d commit 594cb93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,8 @@ impl Flags {
698698
/// For those artifacts, _only_ `host.*.rustflags` is respected, and no other configuration
699699
/// sources, _regardless of the value of `target-applies-to-host`_. This is counterintuitive, but
700700
/// necessary to retain backwards compatibility with older versions of Cargo.
701+
///
702+
/// Rules above also applies to rustdoc. Just the key would be `rustdocflags`/`RUSTDOCFLAGS`.
701703
fn extra_args(
702704
gctx: &GlobalContext,
703705
requested_kinds: &[CompileKind],

0 commit comments

Comments
 (0)