diff options
Diffstat (limited to 'components/script_plugins/unrooted_must_root.rs')
-rw-r--r-- | components/script_plugins/unrooted_must_root.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs index c62796b7a90..d869211315e 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -138,7 +138,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass { visit::FnKind::Closure(_) => return, }; - if !in_derive_expn(cx, span) { + if !in_derive_expn(span) { let def_id = cx.tcx.hir.local_def_id(id); let ty = cx.tcx.item_type(def_id); |