diff options
| author | Edward Shen <code@eddie.sh> | 2023-02-04 17:09:19 -0800 |
|---|---|---|
| committer | Edward Shen <xes@meta.com> | 2023-02-06 11:26:36 -0800 |
| commit | af5a37e8440c503b5bb89ec94199f036d772b9e8 (patch) | |
| tree | dd5dfbb46941c1027d7be39a6db81e716ae13122 /compiler/rustc_trait_selection/src/traits | |
| parent | 044a28a4091f2e1a5883f7fa990223f8b200a2cd (diff) | |
| download | rust-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.rs | 2 |
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> { ¶m_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( |
