diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 23:03:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-18 23:03:07 +0100 |
| commit | 221e71e7a10e43f6e276a349ebad77208169593e (patch) | |
| tree | 7152d87b4f23bd3338175ee9b5f850ed717c5c4f /compiler/rustc_trait_selection/src | |
| parent | e96166eb42676a7f5104939b69e94ab4306d0cb1 (diff) | |
| parent | fec9e9ecf1a34aa87bcae28c158a590f75e16a7d (diff) | |
Rollup merge of #105869 - matthiaskrgr:clone_on_copy, r=compiler-errors
don't clone Copy types
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index b89f489a641..bdedd7bcc54 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -1574,7 +1574,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> { &error.obligation.cause, expected_found.expected, expected_found.found, - err.clone(), + *err, ) .emit(); } @@ -1583,7 +1583,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> { &error.obligation.cause, expected_found.expected, expected_found.found, - err.clone(), + *err, ); let code = error.obligation.cause.code().peel_derives().peel_match_impls(); if let ObligationCauseCode::BindingObligation(..) |
