Fix doc warnings and link failures (#1948)

Also add configuration to CI to fail doc generation if any links are
broken. Unfortunately we can't blanket deny all warnings in rustdoc
since some are unconditional warnings, but for now this is hopefully
good enough.

Closes #1947
This commit is contained in:
Alex Crichton
2020-06-30 13:01:49 -05:00
committed by GitHub
parent dee2bf14a9
commit 0acd2072c2
11 changed files with 23 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ use std::num::NonZeroU32;
/// optimizations to instructions.
///
/// These are created from a set of peephole optimizations with the
/// [`PeepholeOptimizer::instance`][crate::PeepholeOptimizer::instance] method.
/// [`PeepholeOptimizations::optimizer`] method.
///
/// Reusing an instance when applying peephole optimizations to different
/// instruction sequences means that you reuse internal allocations that are