From 64dc5bcbcc703d72fc57f0675492b13ac7aeaba9 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 30 Nov 2020 19:50:27 -0800 Subject: Rename intra_doc_link_resolution_failure lint The intra_doc_link_resolution_failure lint has been renamed to broken_intra_doc_links in recent versions of Rust. With this change we update it accordingly in our list of lints to use for the crate. Because our CI tests against the minimum supported Rust version, which does not yet understand the new lint, we configure it to allow unknown lints. --- ci/gitlab-ci.yml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/gitlab-ci.yml b/ci/gitlab-ci.yml index 79d0317..0a40cc7 100644 --- a/ci/gitlab-ci.yml +++ b/ci/gitlab-ci.yml @@ -21,7 +21,7 @@ build-test:cargo: lint:clippy: script: - rustup component add clippy - - cargo clippy --all-targets --all-features -- -D warnings + - cargo clippy --all-targets --all-features -- -A unknown_lints -D warnings lint:reuse: script: diff --git a/src/main.rs b/src/main.rs index c8b73dc..d193934 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,11 +5,11 @@ #![warn( bad_style, + broken_intra_doc_links, dead_code, future_incompatible, illegal_floating_point_literal_pattern, improper_ctypes, - intra_doc_link_resolution_failure, late_bound_lifetime_arguments, missing_debug_implementations, missing_docs, -- cgit v1.2.1