Only require symbol name for @feature_gate
This commit is contained in:
parent
e9e6e2e444
commit
6f3ad0a40b
5 changed files with 18 additions and 20 deletions
|
@ -2,7 +2,6 @@ use crate::{LateContext, LateLintPass, LintContext};
|
|||
|
||||
use rustc_hir as hir;
|
||||
use rustc_session::{declare_lint, declare_lint_pass};
|
||||
use rustc_span::sym;
|
||||
|
||||
declare_lint! {
|
||||
/// The `multiple_supertrait_upcastable` lint detects when an object-safe trait has multiple
|
||||
|
@ -30,7 +29,7 @@ declare_lint! {
|
|||
pub MULTIPLE_SUPERTRAIT_UPCASTABLE,
|
||||
Allow,
|
||||
"detect when an object-safe trait has multiple supertraits",
|
||||
@feature_gate = sym::multiple_supertrait_upcastable;
|
||||
@feature_gate = multiple_supertrait_upcastable;
|
||||
}
|
||||
|
||||
declare_lint_pass!(MultipleSupertraitUpcastable => [MULTIPLE_SUPERTRAIT_UPCASTABLE]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue