Rollup merge of #108101 - matthiaskrgr:noclonecopy, r=compiler-errors

don't clone types that are copy
This commit is contained in:
Dylan DPC
2023-02-16 11:40:21 +05:30
committed by GitHub
4 changed files with 6 additions and 7 deletions

View File

@@ -599,7 +599,7 @@ fn virtual_call_violation_for_method<'tcx>(
return false;
}
contains_illegal_self_type_reference(tcx, trait_def_id, pred.clone())
contains_illegal_self_type_reference(tcx, trait_def_id, pred)
}) {
return Some(MethodViolationCode::WhereClauseReferencesSelf);
}