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

warning: lint unused_doc_comment has been renamed to unused_doc_comments #245

Closed
@df5602

Description

@df5602

If you use the error_chain! macro on a recent nightly, a number of warnings are generated:

warning: lint unused_doc_comment has been renamed to unused_doc_comments
 --> src/main.rs:4:1
  |
4 | / error_chain! {
5 | |     foreign_links {
6 | |         IoError(::std::io::Error);
7 | |     }
8 | | }
  | |_^
  |
  = note: #[warn(renamed_and_removed_lints)] on by default
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

(Playground)

I think, this is due to #50879.

I'm not sure how to correctly fix this, since just replacing #[allow(unused_doc_comment)] with #[allow(unused_doc_comments)] will not work on older compilers (including current stable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions