diff options
| author | Ralf Jung <post@ralfj.de> | 2023-02-16 10:54:28 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-02-16 10:54:28 +0100 |
| commit | 044aa87d7808f89c38a79d8c68d03249246bf9cb (patch) | |
| tree | 84aa26d240aff1e24fe4ea6b57439dc885e98f44 /compiler/rustc_trait_selection/src/solve | |
| parent | f0ab39b60ef631da86a5069935fdc9ba2e5d0def (diff) | |
| parent | fd8947095678c61c5cbc70509e053621baca282d (diff) | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/mod.rs b/compiler/rustc_trait_selection/src/solve/mod.rs index 301eb4d95f8..28aa3d52705 100644 --- a/compiler/rustc_trait_selection/src/solve/mod.rs +++ b/compiler/rustc_trait_selection/src/solve/mod.rs @@ -547,7 +547,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> { response.value.certainty == Certainty::Yes && response.has_no_inference_or_external_constraints() }) { - return Ok(response.clone()); + return Ok(*response); } let certainty = candidates.iter().fold(Certainty::AMBIGUOUS, |certainty, response| { |
