Skip to content

Commit 34a67cc

Browse files
committed
Work around lint unused_doc_comment has been renamed to unused_doc_comments warning in latest nightly
1 parent c03b56c commit 34a67cc

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
@@ -564,7 +564,9 @@ macro_rules! quick_error {
564564
queue [ ]
565565
) => {
566566
#[allow(unknown_lints)] // no unused_doc_comments in older rust
567+
#[allow(renamed_and_removed_lints)]
567568
#[allow(unused_doc_comment)]
569+
#[allow(unused_doc_comments)]
568570
$(#[$meta])*
569571
pub enum $name {
570572
$(
@@ -580,7 +582,9 @@ macro_rules! quick_error {
580582
queue [ ]
581583
) => {
582584
#[allow(unknown_lints)] // no unused_doc_comments in older rust
585+
#[allow(renamed_and_removed_lints)]
583586
#[allow(unused_doc_comment)]
587+
#[allow(unused_doc_comments)]
584588
$(#[$meta])*
585589
enum $name {
586590
$(
@@ -635,7 +639,9 @@ macro_rules! quick_error {
635639
) => {
636640
#[allow(unused)]
637641
#[allow(unknown_lints)] // no unused_doc_comments in older rust
642+
#[allow(renamed_and_removed_lints)]
638643
#[allow(unused_doc_comment)]
644+
#[allow(unused_doc_comments)]
639645
impl ::std::fmt::Display for $name {
640646
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
641647
-> ::std::fmt::Result
@@ -658,7 +664,9 @@ macro_rules! quick_error {
658664
}
659665
#[allow(unused)]
660666
#[allow(unknown_lints)] // no unused_doc_comments in older rust
667+
#[allow(renamed_and_removed_lints)]
661668
#[allow(unused_doc_comment)]
669+
#[allow(unused_doc_comments)]
662670
impl ::std::error::Error for $name {
663671
fn description(&self) -> &str {
664672
match *self {

0 commit comments

Comments
 (0)