about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-02 22:19:45 +0000
committerMichael Goulet <michael@errs.io>2025-01-02 23:39:17 +0000
commit7601adb4a06be26c5d240b7678ea1d0f661be5ed (patch)
tree8de5bf081062887b7cea500f4ae00b5f71c27496 /compiler
parent8e344ae127782afeda06062266945b8f6368c985 (diff)
downloadrust-7601adb4a06be26c5d240b7678ea1d0f661be5ed.tar.gz
rust-7601adb4a06be26c5d240b7678ea1d0f661be5ed.zip
Make suggestion verbose and tweak error message
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_hir_analysis/src/collect/type_of.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/type_of.rs b/compiler/rustc_hir_analysis/src/collect/type_of.rs
index a3cbf811815..208fa238f80 100644
--- a/compiler/rustc_hir_analysis/src/collect/type_of.rs
+++ b/compiler/rustc_hir_analysis/src/collect/type_of.rs
@@ -467,9 +467,9 @@ fn infer_placeholder_type<'tcx>(
 
             if !ty.references_error() {
                 if let Some(ty) = ty.make_suggestable(tcx, false, None) {
-                    diag.span_suggestion(
+                    diag.span_suggestion_verbose(
                         span,
-                        "replace with the correct type",
+                        "replace this with a fully-specified type",
                         ty,
                         Applicability::MachineApplicable,
                     );