about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorEdward Shen <code@eddie.sh>2023-02-04 17:09:19 -0800
committerEdward Shen <xes@meta.com>2023-02-06 11:26:36 -0800
commitaf5a37e8440c503b5bb89ec94199f036d772b9e8 (patch)
treedd5dfbb46941c1027d7be39a6db81e716ae13122 /compiler/rustc_trait_selection/src/traits
parent044a28a4091f2e1a5883f7fa990223f8b200a2cd (diff)
downloadrust-af5a37e8440c503b5bb89ec94199f036d772b9e8.tar.gz
rust-af5a37e8440c503b5bb89ec94199f036d772b9e8.zip
Modify existing bounds if they exist
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
index 87dbf7c3fd6..91da690a000 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -679,6 +679,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
                         &param_name,
                         &constraint,
                         Some(trait_pred.def_id()),
+                        None,
                     ) {
                         return;
                     }
@@ -1087,6 +1088,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
                     param.name.as_str(),
                     "Clone",
                     Some(clone_trait),
+                    None,
                 );
             }
             err.span_suggestion_verbose(