diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-02 22:19:45 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-02 23:39:17 +0000 |
| commit | 7601adb4a06be26c5d240b7678ea1d0f661be5ed (patch) | |
| tree | 8de5bf081062887b7cea500f4ae00b5f71c27496 /compiler | |
| parent | 8e344ae127782afeda06062266945b8f6368c985 (diff) | |
| download | rust-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.rs | 4 |
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, ); |
