From 359a33797589d87ad9177e9ae7ff6c5acd2dabc9 Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Sun, 27 May 2018 12:27:41 +0200 Subject: [PATCH] Rename lint unused_doc_comment to unused_doc_comments --- src/error_chain.rs | 4 ++-- src/impl_error_chain_kind.rs | 4 ++-- src/lib.rs | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/error_chain.rs b/src/error_chain.rs index 9b95a77d3..ddba1920d 100644 --- a/src/error_chain.rs +++ b/src/error_chain.rs @@ -179,7 +179,7 @@ macro_rules! impl_error_chain_processed { self.description() } - #[allow(unknown_lints, unused_doc_comment)] + #[allow(unknown_lints, unused_doc_comments)] fn cause(&self) -> Option<&::std::error::Error> { match self.1.next_error { Some(ref c) => Some(&**c), @@ -421,7 +421,7 @@ macro_rules! impl_extract_backtrace { ($error_name: ident $error_kind_name: ident $([$link_error_path: path, $(#[$meta_links: meta])*])*) => { - #[allow(unknown_lints, unused_doc_comment)] + #[allow(unknown_lints, unused_doc_comments)] fn extract_backtrace(e: &(::std::error::Error + Send + 'static)) -> Option<$crate::InternalBacktrace> { if let Some(e) = e.downcast_ref::<$error_name>() { diff --git a/src/impl_error_chain_kind.rs b/src/impl_error_chain_kind.rs index 69569b64d..2d51a9296 100644 --- a/src/impl_error_chain_kind.rs +++ b/src/impl_error_chain_kind.rs @@ -224,7 +224,7 @@ macro_rules! impl_error_chain_kind { $item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*} )*} ) => { - #[allow(unknown_lints, unused, unused_doc_comment)] + #[allow(unknown_lints, unused, unused_doc_comments)] impl ::std::fmt::Display for $name { fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result @@ -247,7 +247,7 @@ macro_rules! impl_error_chain_kind { } } } - #[allow(unknown_lints, unused, unused_doc_comment)] + #[allow(unknown_lints, unused, unused_doc_comments)] impl $name { /// A string describing the error kind. pub fn description(&self) -> &str { diff --git a/src/lib.rs b/src/lib.rs index ac185c643..f4a802c30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![deny(missing_docs)] -#![allow(unknown_lints)] // to be removed when unused_doc_comments lints is merged #![doc(html_root_url = "https://docs.rs/error-chain/0.11.0")] //! A library for consistent and reliable error handling