Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 1d7157c

Browse files
bjgillYamakaky
authored andcommitted
Fix new renamed_and_removed_lints warning (#247)
I've verified that this now produces no warnings with Rust 1.26.1 and 1.28.0-nightly (c3b09c968 2018-05-27)
1 parent 48c18a9 commit 1d7157c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/error_chain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ macro_rules! impl_error_chain_processed {
179179
self.description()
180180
}
181181

182-
#[allow(unknown_lints, unused_doc_comment)]
182+
#[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
183183
fn cause(&self) -> Option<&::std::error::Error> {
184184
match self.1.next_error {
185185
Some(ref c) => Some(&**c),
@@ -421,7 +421,7 @@ macro_rules! impl_extract_backtrace {
421421
($error_name: ident
422422
$error_kind_name: ident
423423
$([$link_error_path: path, $(#[$meta_links: meta])*])*) => {
424-
#[allow(unknown_lints, unused_doc_comment)]
424+
#[allow(unknown_lints, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
425425
fn extract_backtrace(e: &(::std::error::Error + Send + 'static))
426426
-> Option<$crate::InternalBacktrace> {
427427
if let Some(e) = e.downcast_ref::<$error_name>() {

src/impl_error_chain_kind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ macro_rules! impl_error_chain_kind {
224224
$item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*}
225225
)*}
226226
) => {
227-
#[allow(unknown_lints, unused, unused_doc_comment)]
227+
#[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
228228
impl ::std::fmt::Display for $name {
229229
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
230230
-> ::std::fmt::Result
@@ -247,7 +247,7 @@ macro_rules! impl_error_chain_kind {
247247
}
248248
}
249249
}
250-
#[allow(unknown_lints, unused, unused_doc_comment)]
250+
#[allow(unknown_lints, unused, renamed_and_removed_lints, unused_doc_comment, unused_doc_comments)]
251251
impl $name {
252252
/// A string describing the error kind.
253253
pub fn description(&self) -> &str {

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![deny(missing_docs)]
2-
#![allow(unknown_lints)] // to be removed when unused_doc_comments lints is merged
32
#![doc(html_root_url = "https://docs.rs/error-chain/0.11.0")]
43

54
//! A library for consistent and reliable error handling

0 commit comments

Comments
 (0)