about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/late/diagnostics.rs
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-11-08 20:46:15 -0800
committerGitHub <noreply@github.com>2024-11-08 20:46:15 -0800
commitc4922f12fd155d50f3e10389c6835ab872b50be2 (patch)
tree9dce11b22c3ab091ed91107bd33b838af4bbd7fa /compiler/rustc_resolve/src/late/diagnostics.rs
parentdc647392d698aaf2eb5eba938fa4a5b8d328ed97 (diff)
parent0e481b44f5d851e9b7b3b3ed1b576d92437c7684 (diff)
downloadrust-c4922f12fd155d50f3e10389c6835ab872b50be2.tar.gz
rust-c4922f12fd155d50f3e10389c6835ab872b50be2.zip
Rollup merge of #132780 - compiler-errors:verbose, r=estebank
use verbose for path separator suggestion

A single `-` of suggestion underlining that is adjacent to a much more significant `^^^` underlying of the LHS path component is hard to distinguish. IMO this presents much more cleanly when it's verbose, especially because it's a *replacment* suggestion.

r? estebank
Diffstat (limited to 'compiler/rustc_resolve/src/late/diagnostics.rs')
-rw-r--r--compiler/rustc_resolve/src/late/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs
index 42455983575..09f5a8e96d3 100644
--- a/compiler/rustc_resolve/src/late/diagnostics.rs
+++ b/compiler/rustc_resolve/src/late/diagnostics.rs
@@ -1472,7 +1472,7 @@ impl<'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
             };
 
             if lhs_span.eq_ctxt(rhs_span) {
-                err.span_suggestion(
+                err.span_suggestion_verbose(
                     lhs_span.between(rhs_span),
                     MESSAGE,
                     "::",