diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-16 01:30:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 01:30:31 +0100 |
| commit | bbdc871c5377e4c78a565d26f232a11516fe38f9 (patch) | |
| tree | d32766478691eb0a82659bda4a9bf23789415993 /src | |
| parent | 957241fcf964ef24105b794308b6acb990824096 (diff) | |
| parent | 138d29d358233d6ffc6c0d0bd0dcc3107e93b591 (diff) | |
| download | rust-bbdc871c5377e4c78a565d26f232a11516fe38f9.tar.gz rust-bbdc871c5377e4c78a565d26f232a11516fe38f9.zip | |
Rollup merge of #69917 - GuillaumeGomez:cleanup-e0412, r=Dylan-DPC
Cleanup E0412 and E0422 r? @Dylan-DPC
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0412.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0422.md | 3 | ||||
| -rw-r--r-- | src/test/ui/lint/use_suggestion_json.stderr | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0412.md b/src/librustc_error_codes/error_codes/E0412.md index 60a09610d86..d9ebc852bba 100644 --- a/src/librustc_error_codes/error_codes/E0412.md +++ b/src/librustc_error_codes/error_codes/E0412.md @@ -1,4 +1,4 @@ -The type name used is not in scope. +A used type name is not in scope. Erroneous code examples: diff --git a/src/librustc_error_codes/error_codes/E0422.md b/src/librustc_error_codes/error_codes/E0422.md index a91ea6a9e22..828a52e7341 100644 --- a/src/librustc_error_codes/error_codes/E0422.md +++ b/src/librustc_error_codes/error_codes/E0422.md @@ -1,4 +1,5 @@ -You are trying to use an identifier that is either undefined or not a struct. +An identifier that is neither defined nor a struct was used. + Erroneous code example: ```compile_fail,E0422 diff --git a/src/test/ui/lint/use_suggestion_json.stderr b/src/test/ui/lint/use_suggestion_json.stderr index 0dc0d247af5..7176f17bc3f 100644 --- a/src/test/ui/lint/use_suggestion_json.stderr +++ b/src/test/ui/lint/use_suggestion_json.stderr @@ -2,7 +2,7 @@ "message": "cannot find type `Iter` in this scope", "code": { "code": "E0412", - "explanation": "The type name used is not in scope. + "explanation": "A used type name is not in scope. Erroneous code examples: |
