allow/lib.rs
1//! Alias lints (to allow them = suppress their notices), label your intentions.
2//!
3//! Re-exported from `allow_prefixed` crate: prefixless (rustc/standard) lints are at the top level
4//! and also grouped (duplicated) under `rustc::` module; `clippy` and `rustdoc` lints are grouped
5//! under clippy:: and rustdoc:: modules.
6
7#![forbid(unknown_lints)]
8#![cfg_attr(has_rustdoc_lints, deny(rustdoc::missing_docs))]
9#![cfg_attr(can_check_doc_attributes, deny(invalid_doc_attributes))]
10#![deny(unused_doc_comments)]
11#![cfg_attr(
12 unstable_feature, // "unstable_feature" comes from ../build.rs
13 feature(
14 c_unwind, // https://github.com/rust-lang/rust/issues/74990
15 lint_reasons, // https://github.com/rust-lang/rust/issues/54503
16 multiple_supertrait_upcastable, // https://doc.rust-lang.org/beta/unstable-book/language-features/multiple-supertrait-upcastable.html
17 must_not_suspend, // https://github.com/rust-lang/rust/issues/83310
18 non_exhaustive_omitted_patterns_lint, // https://github.com/rust-lang/rust/issues/89554
19 strict_provenance, // https://github.com/rust-lang/rust/issues/95228
20 test_unstable_lint // https://doc.rust-lang.org/nightly/unstable-book/language-features/test-unstable-lint.html
21 )
22)]
23pub mod clippy;
24pub mod rustc;
25pub mod rustdoc;
26
27// Users can choose to access prefixless lints through `rustc::`, or from the top level.
28pub use rustc::*;