Auto merge of #85990 - jyn514:channel-replace-rustdoc, r=Manishearth

rustdoc: link consistently to stable/beta in diagnostic messages

Builds on https://github.com/rust-lang/rust/pull/84942. This makes the diagnostics consistent with the links.
This commit is contained in:
bors
2021-06-05 08:42:05 +00:00
4 changed files with 17 additions and 7 deletions

View File

@@ -613,7 +613,10 @@ fn usage(argv0: &str) {
}
println!("{}", options.usage(&format!("{} [options] <input>", argv0)));
println!(" @path Read newline separated options from `path`\n");
println!("More information available at https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html")
println!(
"More information available at {}/rustdoc/what-is-rustdoc.html",
DOC_RUST_LANG_ORG_CHANNEL
);
}
/// A result type used by several functions under `main()`.