diff options
| author | Michael Howell <michael@notriddle.com> | 2022-03-12 08:20:36 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-03-12 08:20:36 -0700 |
| commit | 26e299a4a74e4526ee405476bf45559c434d28ce (patch) | |
| tree | 92cca66117f79d92ab4e37c4c05ec290a45a23e7 | |
| parent | 7e323370b351ab138caa90cddb0e9811a4e8439d (diff) | |
Use consistent prose for `::`
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 5b398a51318..21d5bec65f0 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -2080,7 +2080,7 @@ impl<'a> Parser<'a> { // Find a mistake like "foo::var:A". err.span_suggestion( snapshot.token.span, - "you might have meant to write a path", + "write a path separator here", "::".to_string(), Applicability::MaybeIncorrect, ); diff --git a/src/test/ui/generics/single-colon-path-not-const-generics.rs b/src/test/ui/generics/single-colon-path-not-const-generics.rs index d8ed8fbfe72..55a7ae0bb6d 100644 --- a/src/test/ui/generics/single-colon-path-not-const-generics.rs +++ b/src/test/ui/generics/single-colon-path-not-const-generics.rs @@ -7,7 +7,7 @@ pub mod foo { pub struct Foo { a: Vec<foo::bar:A>, //~^ ERROR expected - //~| HELP you might have meant to write a path + //~| HELP path separator } fn main() {} diff --git a/src/test/ui/generics/single-colon-path-not-const-generics.stderr b/src/test/ui/generics/single-colon-path-not-const-generics.stderr index d509fb7aeaa..3eafa9fa5a9 100644 --- a/src/test/ui/generics/single-colon-path-not-const-generics.stderr +++ b/src/test/ui/generics/single-colon-path-not-const-generics.stderr @@ -5,7 +5,7 @@ LL | a: Vec<foo::bar:A>, | ^ | | | expected one of `,` or `>` - | help: you might have meant to write a path: `::` + | help: write a path separator here: `::` error: aborting due to previous error |
