diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-03-09 20:02:47 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-03-09 20:02:47 +0000 |
| commit | 7e79dcdc06a2bbd4a1d3250b23dbfc024bf0a86f (patch) | |
| tree | f5a63631749344aac7c43c7f1b9fe90fc98aa34e | |
| parent | 46b180ec2452d388c5d9c14009442e2e0beb01d7 (diff) | |
| download | rust-7e79dcdc06a2bbd4a1d3250b23dbfc024bf0a86f.tar.gz rust-7e79dcdc06a2bbd4a1d3250b23dbfc024bf0a86f.zip | |
Drive-by fix string fmt
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mod.rs b/compiler/rustc_borrowck/src/diagnostics/mod.rs index 560928d3941..4ebbe592628 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mod.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mod.rs @@ -1226,20 +1226,20 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { { let msg = match &errors[..] { [] => "you can `clone` the value and consume it, but this \ - might not be your desired behavior" + might not be your desired behavior" .to_string(), [error] => { format!( - "you could `clone` the value and consume it, if \ - the `{}` trait bound could be satisfied", + "you could `clone` the value and consume it, if the \ + `{}` trait bound could be satisfied", error.obligation.predicate, ) } [errors @ .., last] => { format!( - "you could `clone` the value and consume it, if \ - the following trait bounds could be satisfied: {} \ - and `{}`", + "you could `clone` the value and consume it, if the \ + following trait bounds could be satisfied: \ + {} and `{}`", errors .iter() .map(|e| format!("`{}`", e.obligation.predicate)) |
