diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-11 17:49:00 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-11 23:02:19 +0100 |
| commit | db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8 (patch) | |
| tree | f5c29a089c9fe2d43affb6cc3a5c18f7f50a1b65 /compiler/rustc_trait_selection | |
| parent | 82fe5c16622051a71a37c9c4909dd1f4e0857584 (diff) | |
| download | rust-db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8.tar.gz rust-db6c50998c929c9bab5ea2ffdddf5e0eef25d3c8.zip | |
don't clone types that are copy (clippy::clone_on_copy)
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/confirmation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs index a42c8021346..ed22d5849e2 100644 --- a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs +++ b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs @@ -447,7 +447,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { ); nested.push(Obligation::new( obligation.cause.clone(), - obligation.param_env.clone(), + obligation.param_env, normalized_super_trait, )); } @@ -485,7 +485,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { ); nested.push(Obligation::new( obligation.cause.clone(), - obligation.param_env.clone(), + obligation.param_env, normalized_bound, )); } |
