Follow review comments (optimize the filtering)
This commit is contained in:
parent
edc6577627
commit
71b4d108c7
16 changed files with 276 additions and 151 deletions
|
@ -12,8 +12,6 @@ use rustc_span::edition::Edition;
|
|||
use crate::{FutureIncompatibilityReason, declare_lint, declare_lint_pass};
|
||||
|
||||
declare_lint_pass! {
|
||||
/// Does nothing as a lint pass, but registers some `Lint`s
|
||||
/// that are used by other parts of the compiler.
|
||||
HardwiredLints => [
|
||||
// tidy-alphabetical-start
|
||||
ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE,
|
||||
|
@ -403,7 +401,8 @@ declare_lint! {
|
|||
/// `panic!` or `unreachable!` macro instead in case the panic is intended.
|
||||
pub UNCONDITIONAL_PANIC,
|
||||
Deny,
|
||||
"operation will cause a panic at runtime"
|
||||
"operation will cause a panic at runtime",
|
||||
[loadbearing: true]
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue