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

Commit 1cf15e6

Browse files
GuillaumeGomezYamakaky
authored andcommitted
Fix rustc build
PR #199
1 parent 8ea2d4f commit 1cf15e6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Add a new method for `Error`: `chain_err`.](https://github.com/brson/error-chain/pull/141)
66
- [Allow `chain_err` to be used on `Option<T>`](https://github.com/brson/error-chain/pull/156)
77
- [Add support for creating an error chain on boxed trait errors (`Box<Error>`)](https://github.com/brson/error-chain/pull/156)
8+
- [Remove lint for unused doc comment.](https://github.com/brson/error-chain/pull/199)
89

910
# 0.10.0
1011

src/error_chain.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ macro_rules! error_chain_processed {
172172
self.0.description()
173173
}
174174

175+
#[allow(unused_doc_comment)]
175176
fn cause(&self) -> Option<&::std::error::Error> {
176177
match self.1.next_error {
177178
Some(ref c) => Some(&**c),
@@ -423,6 +424,7 @@ macro_rules! impl_extract_backtrace {
423424
($error_name: ident
424425
$error_kind_name: ident
425426
$([$link_error_path: path, $(#[$meta_links: meta])*])*) => {
427+
#[allow(unused_doc_comment)]
426428
fn extract_backtrace(e: &(::std::error::Error + Send + 'static))
427429
-> Option<::std::sync::Arc<$crate::Backtrace>> {
428430
if let Some(e) = e.downcast_ref::<$error_name>() {

src/quick_error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ macro_rules! quick_error {
260260
$item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*}
261261
)*}
262262
) => {
263-
#[allow(unused)]
263+
#[allow(unused, unused_doc_comment)]
264264
impl ::std::fmt::Display for $name {
265265
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
266266
-> ::std::fmt::Result
@@ -310,7 +310,7 @@ macro_rules! quick_error {
310310
}
311311
}
312312
}*/
313-
#[allow(unused)]
313+
#[allow(unused, unused_doc_comment)]
314314
impl $name {
315315
/// A string describing the error kind.
316316
pub fn description(&self) -> &str {

0 commit comments

Comments
 (0)