diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-23 09:31:34 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-23 09:48:07 +0200 |
| commit | abde841f0abfced6be0a51d9de6d172f7b993081 (patch) | |
| tree | 8279715edd8a8b332ec4b1babce6728092198338 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | cec34a43b1b14f4e39363f3b283d7ac4f593ee81 (diff) | |
| download | rust-abde841f0abfced6be0a51d9de6d172f7b993081.tar.gz rust-abde841f0abfced6be0a51d9de6d172f7b993081.zip | |
remove redundant clones
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index c72d37be748..dbe1d6e8ba8 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -353,7 +353,7 @@ impl IntoDiagnostic<'_> for LinkingFailed<'_> { let contains_undefined_ref = self.escaped_output.contains("undefined reference to"); - diag.note(format!("{:?}", self.command)).note(self.escaped_output.to_string()); + diag.note(format!("{:?}", self.command)).note(self.escaped_output); // Trying to match an error from OS linkers // which by now we have no way to translate. |
