chore(ci): Ensure intradoc links are valid

This commit is contained in:
Ed Page 2022-09-06 09:19:03 -05:00
parent 04a4081f11
commit 4b2837a4cc
3 changed files with 5 additions and 2 deletions

View File

@ -150,7 +150,9 @@ jobs:
mkdir mdbook
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- run: cargo doc --no-deps
- run: cargo doc --document-private-items --no-deps
env:
RUSTDOCFLAGS: -D warnings
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
- run: |
cd src/doc

View File

@ -5,6 +5,7 @@
// Due to some of the default clippy lints being somewhat subjective and not
// necessarily an improvement, we prefer to not use them at this time.
#![allow(clippy::all)]
#![allow(rustdoc::private_intra_doc_links)]
//! # Cargo as a library
//!

View File

@ -348,7 +348,7 @@ pub fn fix_get_proxy_lock_addr() -> Option<String> {
/// If there are warnings or errors, this does not return,
/// and the process exits with the corresponding `rustc` exit code.
///
/// See [`fix_proxy_lock_addr`]
/// See [`fix_get_proxy_lock_addr`]
pub fn fix_exec_rustc(config: &Config, lock_addr: &str) -> CargoResult<()> {
let args = FixArgs::get()?;
trace!("cargo-fix as rustc got file {:?}", args.file);