Catch documentation errors caused by code changes

This commit is contained in:
Jack Grigg 2019-11-14 13:30:07 +00:00
parent 92b3e6a9b6
commit ab8293935a
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
2 changed files with 25 additions and 0 deletions

View File

@ -49,3 +49,26 @@ jobs:
with:
command: test
args: --verbose --release
doc-links:
name: Nightly lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
# Ensure intra-documentation links all resolve correctly
# Requires #![deny(intra_doc_link_resolution_failure)] in crate.
- name: Check intra-doc links
uses: actions-rs/cargo@v1
with:
command: doc
args: --document-private-items

View File

@ -27,6 +27,8 @@
//! recommended to enable this if you are able to use a nightly version of the Rust compiler.
#![no_std]
// Catch documentation errors caused by code changes.
#![deny(intra_doc_link_resolution_failure)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
#![deny(unsafe_code)]