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
Description
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)
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
Labels
No labels