Skip to content

Commit 7494b08

Browse files
committed
Fix doc links
1 parent 5550429 commit 7494b08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cargo/core/compiler/unit.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ pub struct UnitInner {
6868
/// As of now, these flags come from environment variables and configurations.
6969
/// See [`TargetInfo.rustflags`] for more on how Cargo collects them.
7070
///
71-
/// [`TargetInfo.rustflags`]: TargetInfo::rustflags
71+
/// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
72+
/// [`TargetInfo.rustflags`]: crate::core::compiler::build_context::TargetInfo::rustflags
7273
pub rustflags: Arc<[String]>,
7374
/// Extra compiler flags to pass to `rustdoc` for a given unit.
7475
///
@@ -78,7 +79,8 @@ pub struct UnitInner {
7879
/// As of now, these flags come from environment variables and configurations.
7980
/// See [`TargetInfo.rustdocflags`] for more on how Cargo collects them.
8081
///
81-
/// [`TargetInfo.rustdocflags`]: TargetInfo::rustdocflags
82+
/// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
83+
/// [`TargetInfo.rustdocflags`]: crate::core::compiler::build_context::TargetInfo::rustdocflags
8284
pub rustdocflags: Arc<[String]>,
8385
// if `true`, the dependency is an artifact dependency, requiring special handling when
8486
// calculating output directories, linkage and environment variables provided to builds.

0 commit comments

Comments
 (0)