Skip to content

Commit b75d511

Browse files
authored
Rollup merge of rust-lang#132168 - fee1-dead-contrib:fxclean, r=compiler-errors
Effects cleanup - removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers r? compiler-errors
2 parents 8b9376a + 350d1c4 commit b75d511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/derive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn check_copy_clone<'tcx>(cx: &LateContext<'tcx>, item: &Item<'_>, trait_ref: &h
324324
// If the current self type doesn't implement Copy (due to generic constraints), search to see if
325325
// there's a Copy impl for any instance of the adt.
326326
if !is_copy(cx, ty) {
327-
if ty_subs.non_erasable_generics(cx.tcx, ty_adt.did()).next().is_some() {
327+
if ty_subs.non_erasable_generics().next().is_some() {
328328
let has_copy_impl = cx.tcx.all_local_trait_impls(()).get(&copy_id).map_or(false, |impls| {
329329
impls.iter().any(|&id| {
330330
matches!(cx.tcx.type_of(id).instantiate_identity().kind(), ty::Adt(adt, _)

0 commit comments

Comments
 (0)