]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Auto merge of #91962 - matthiaskrgr:rollup-2g082jw, r=matthiaskrgr
[rust.git] / compiler / rustc_trait_selection / src / traits / error_reporting / suggestions.rs
index 4d17a7140e80b19496efa05a6a59f0b1a68598a9..8624f8c8442e1f3394f1c4bbbfaf955e2cd6234d 100644 (file)
@@ -747,7 +747,7 @@ fn suggest_add_reference_to_arg(
 
                     let msg = format!(
                         "the trait bound `{}: {}` is not satisfied",
-                        orig_ty.to_string(),
+                        orig_ty,
                         old_ref.print_only_trait_path(),
                     );
                     if has_custom_message {