Rollup merge of #88849 - matthiaskrgr:clony_on_copy, r=petrochenkov
don't clone types that are Copy (clippy::clone_on_copy)
This commit is contained in:
commit
c2e1097f44
15 changed files with 30 additions and 34 deletions
|
@ -2060,7 +2060,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
source_info.span, ascription.source, ascription.user_ty,
|
||||
);
|
||||
|
||||
let user_ty = ascription.user_ty.clone().user_ty(
|
||||
let user_ty = ascription.user_ty.user_ty(
|
||||
&mut self.canonical_user_type_annotations,
|
||||
ascription.source.ty(&self.local_decls, self.tcx).ty,
|
||||
source_info.span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue