diff options
Diffstat (limited to 'support/crown/src/unrooted_must_root.rs')
-rw-r--r-- | support/crown/src/unrooted_must_root.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/support/crown/src/unrooted_must_root.rs b/support/crown/src/unrooted_must_root.rs index e0d18cb3b7a..3c1c2f87d9a 100644 --- a/support/crown/src/unrooted_must_root.rs +++ b/support/crown/src/unrooted_must_root.rs @@ -3,7 +3,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use rustc_hir::{self as hir, intravisit as visit, ExprKind}; -use rustc_lint::{LateContext, LateLintPass, LintContext, LintPass, LintStore}; +use rustc_lint::{LateContext, LateLintPass, Lint, LintContext, LintPass, LintStore}; use rustc_middle::ty; use rustc_session::declare_tool_lint; use rustc_span::def_id::{DefId, LocalDefId}; @@ -217,6 +217,10 @@ impl LintPass for UnrootedPass { fn name(&self) -> &'static str { "ServoUnrootedPass" } + + fn get_lints(&self) -> Vec<&'static Lint> { + vec![UNROOTED_MUST_ROOT] + } } impl<'tcx> LateLintPass<'tcx> for UnrootedPass { |