Skip to content

Commit ef9e5f3

Browse files
committed
Ignore rustc_args
1 parent 8253c50 commit ef9e5f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/build_doc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ pub fn build_doc(name: &str, vers: Option<&str>, target: Option<&str>) -> CargoR
5959
release: false,
6060
message_format: ops::MessageFormat::Human,
6161
filter: ops::CompileFilter::new(true, &[], &[], &[], &[]),
62-
target_rustc_args: metadata.rustc_args.as_ref().map(Vec::as_slice),
62+
// FIXME: cargo is ignoring target_rustdoc_args if rustc_args set.
63+
// I believe this is expected behavior when building docs but I am not sure.
64+
// This needs to be investigated.
65+
target_rustc_args: None,
6366
target_rustdoc_args: metadata.rustdoc_args.as_ref().map(Vec::as_slice),
6467
};
6568

0 commit comments

Comments
 (0)