You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc @petrochenkov @rust-lang/lang I cannot decide whether this is expected behavior or not, but it makes sense that missing_docs should fire on exported macros.
Preventing this code from compiling would likely break some backwards compatability
We don't guarantee backwards-compatibility for #![deny(warnings)], otherwise we would never be able to introduce a new warning. I agree that missing deny(missing_docs) should error on crate-exported macros with no documentation.
This broke compilation of existing code in the rustc-perf benchmark suite, see rust-lang/rustc-perf#325
I see the comment "We don't guarantee backwards-compatibility for #![deny(warnings)]" above, but I thought it might be useful to note some practical consequences.
Activity
Centril commentedon Nov 30, 2018
cc @petrochenkov @rust-lang/lang I cannot decide whether this is expected behavior or not, but it makes sense that
missing_docsshould fire on exported macros.cramertj commentedon Dec 3, 2018
We don't guarantee backwards-compatibility for
#![deny(warnings)], otherwise we would never be able to introduce a new warning. I agree that missingdeny(missing_docs)should error on crate-exported macros with no documentation.scottmcm commentedon Dec 13, 2018
Lang team discussion agreed with the two comments above; the lint should warn for this.
nnethercote commentedon Jan 14, 2019
This broke compilation of existing code in the rustc-perf benchmark suite, see rust-lang/rustc-perf#325
I see the comment "We don't guarantee backwards-compatibility for
#![deny(warnings)]" above, but I thought it might be useful to note some practical consequences.cramertj commentedon Jan 14, 2019
@nnethercote Seems like that suite should set
-cap-lints=allow.