Skip to content

Commit c5a3f1c

Browse files
committed
Use () for HIR queries.
1 parent ab73020 commit c5a3f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/derive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use rustc_lint::{LateContext, LateLintPass};
1212
use rustc_middle::hir::map::Map;
1313
use rustc_middle::ty::{self, Ty};
1414
use rustc_session::{declare_lint_pass, declare_tool_lint};
15-
use rustc_span::{def_id::LOCAL_CRATE, source_map::Span};
15+
use rustc_span::{source_map::Span};
1616

1717
declare_clippy_lint! {
1818
/// **What it does:** Checks for deriving `Hash` but implementing `PartialEq`
@@ -312,7 +312,7 @@ fn check_copy_clone<'tcx>(cx: &LateContext<'tcx>, item: &Item<'_>, trait_ref: &T
312312
if ty_subs.non_erasable_generics().next().is_some() {
313313
let has_copy_impl = cx
314314
.tcx
315-
.all_local_trait_impls(LOCAL_CRATE)
315+
.all_local_trait_impls(())
316316
.get(&copy_id)
317317
.map_or(false, |impls| {
318318
impls

0 commit comments

Comments
 (0)