Skip to content

Commit a2e0ad0

Browse files
committed
Adds allow(unused_doc_comment) attribute (fixes #39)
1 parent 78953ae commit a2e0ad0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ macro_rules! quick_error {
563563
=> $iitem:ident ($(($( $ttyp:ty ),+))*) {$({$( $svar:ident: $styp:ty ),*})*} )* ]
564564
queue [ ]
565565
) => {
566+
#[allow(unknown_lints)] // no unused_doc_comments in older rust
567+
#[allow(unused_doc_comment)]
566568
$(#[$meta])*
567569
pub enum $name {
568570
$(
@@ -577,6 +579,8 @@ macro_rules! quick_error {
577579
=> $iitem:ident ($(($( $ttyp:ty ),+))*) {$({$( $svar:ident: $styp:ty ),*})*} )* ]
578580
queue [ ]
579581
) => {
582+
#[allow(unknown_lints)] // no unused_doc_comments in older rust
583+
#[allow(unused_doc_comment)]
580584
$(#[$meta])*
581585
enum $name {
582586
$(
@@ -630,6 +634,8 @@ macro_rules! quick_error {
630634
)*}
631635
) => {
632636
#[allow(unused)]
637+
#[allow(unknown_lints)] // no unused_doc_comments in older rust
638+
#[allow(unused_doc_comment)]
633639
impl ::std::fmt::Display for $name {
634640
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
635641
-> ::std::fmt::Result
@@ -651,6 +657,8 @@ macro_rules! quick_error {
651657
}
652658
}
653659
#[allow(unused)]
660+
#[allow(unknown_lints)] // no unused_doc_comments in older rust
661+
#[allow(unused_doc_comment)]
654662
impl ::std::error::Error for $name {
655663
fn description(&self) -> &str {
656664
match *self {

0 commit comments

Comments
 (0)