Skip to content

Commit 23e20fc

Browse files
committed
Fix all the broken intra-doc links
1 parent cea9b52 commit 23e20fc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

crates/build-rs/src/output.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ pub fn rustc_link_arg_bins(flag: &str) {
119119
/// The `rustc-link-arg-tests` instruction tells Cargo to pass the
120120
/// [`-C link-arg=FLAG` option][link-arg] to the compiler, but only when building
121121
/// a tests target.
122+
///
123+
/// [link-arg]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg
122124
#[track_caller]
123125
pub fn rustc_link_arg_tests(flag: &str) {
124126
if flag.contains([' ', '\n']) {
@@ -130,6 +132,8 @@ pub fn rustc_link_arg_tests(flag: &str) {
130132
/// The `rustc-link-arg-examples` instruction tells Cargo to pass the
131133
/// [`-C link-arg=FLAG` option][link-arg] to the compiler, but only when building
132134
/// an examples target.
135+
///
136+
/// [link-arg]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg
133137
#[track_caller]
134138
pub fn rustc_link_arg_examples(flag: &str) {
135139
if flag.contains([' ', '\n']) {
@@ -141,6 +145,8 @@ pub fn rustc_link_arg_examples(flag: &str) {
141145
/// The `rustc-link-arg-benches` instruction tells Cargo to pass the
142146
/// [`-C link-arg=FLAG` option][link-arg] to the compiler, but only when building
143147
/// a benchmark target.
148+
///
149+
/// [link-arg]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-arg
144150
#[track_caller]
145151
pub fn rustc_link_arg_benches(flag: &str) {
146152
if flag.contains([' ', '\n']) {

src/cargo/core/compiler/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ pub fn add_root_urls(
243243
}
244244

245245
/// Adds unstable flag [`--output-format`][1] to the given `rustdoc`
246-
/// invocation. This is for unstable feature [`-Zunstable-features`].
246+
/// invocation. This is for unstable feature `-Zunstable-features`.
247247
///
248248
/// [1]: https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html?highlight=output-format#-w--output-format-output-format
249249
pub fn add_output_format(

src/cargo/util/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ impl GlobalContext {
19821982
Ok(())
19831983
}
19841984

1985-
/// Returns a list of [target.'`cfg()`'] tables.
1985+
/// Returns a list of `target.'cfg()'` tables.
19861986
///
19871987
/// The list is sorted by the table name.
19881988
pub fn target_cfgs(&self) -> CargoResult<&Vec<(String, TargetCfgConfig)>> {

0 commit comments

Comments
 (0)