Skip to content

Commit 7e84273

Browse files
committed
Make resolve suggestion more generic
1 parent 0c0685b commit 7e84273

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: compiler/rustc_resolve/src/late.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3354,7 +3354,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
33543354
}
33553355
Some((
33563356
span,
3357-
"you might have meant to write a method call instead of a range",
3357+
"you might have meant to write `.` instead of `..`",
33583358
sugg.to_string(),
33593359
Applicability::MaybeIncorrect,
33603360
))

Diff for: src/test/ui/suggestions/method-access-to-range-literal-typo.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0425]: cannot find function `foo` in this scope
44
LL | self.option..foo().get(0)
55
| ^^^ not found in this scope
66
|
7-
help: you might have meant to write a method call instead of a range
7+
help: you might have meant to write `.` instead of `..`
88
|
99
LL - self.option..foo().get(0)
1010
LL + self.option.foo().get(0)

0 commit comments

Comments
 (0)