rust/tests/ui/parser
Matthias Krüger 4a31cc859b
Rollup merge of #115473 - gurry:113110-expected-item, r=compiler-errors
Add explanatory note to 'expected item' error

Fixes #113110

It changes the diagnostic from this:

```
error: expected item, found `5`
 --> ../test.rs:1:1
  |
1 | 5
  | ^ expected item
 ```
to this:
```
error: expected item, found `5`
 --> ../test.rs:1:1
  |
1 | 5
  | ^ expected item
  |
  = note: items are things that can appear at the root of a module
  = note: for a full list see https://doc.rust-lang.org/reference/items.html
```
2023-09-06 19:31:48 +02:00
..
char
diff-markers
issues Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
macro discard dummy field for macro invocation when parse struct 2023-08-21 21:05:01 +08:00
mismatched-braces Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
raw Migrate rustc_parse to derive diagnostics 2023-02-06 14:40:35 +00:00
shebang Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
suggest_misplaced_generics fix formatting + test syntax 2023-02-01 18:11:37 +11:00
anon-enums-are-ambiguous.rs Add a test 2023-02-02 05:54:35 +00:00
ascii-only-character-escape.rs
ascii-only-character-escape.stderr
assoc-const-underscore-semantic-fail.rs
assoc-const-underscore-semantic-fail.stderr
assoc-const-underscore-syntactic-pass.rs
assoc-oddities-1.rs
assoc-oddities-1.stderr
assoc-oddities-2.rs
assoc-oddities-2.stderr
assoc-static-semantic-fail.rs Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
assoc-static-semantic-fail.stderr Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
assoc-static-syntactic-fail.rs
assoc-static-syntactic-fail.stderr
assoc-type-in-type-arg.rs
assoc-type-in-type-arg.stderr
associated-types-project-from-hrtb-explicit.rs
associated-types-project-from-hrtb-explicit.stderr
async-with-nonterminal-block.rs Support interpolated block for try and async 2023-07-22 15:22:12 +00:00
attr-bad-meta-2.rs
attr-bad-meta-2.stderr
attr-bad-meta-3.rs
attr-bad-meta-3.stderr
attr-bad-meta.rs
attr-bad-meta.stderr
attr-before-eof.rs
attr-before-eof.stderr
attr-dangling-in-fn.rs
attr-dangling-in-fn.stderr
attr-dangling-in-mod.rs
attr-dangling-in-mod.stderr
attr-stmt-expr-attr-bad.rs Rip it out 2023-05-01 16:15:13 +08:00
attr-stmt-expr-attr-bad.stderr fix test cases 2023-05-01 16:15:17 +08:00
attr-with-a-semicolon.rs
attr-with-a-semicolon.stderr
attr.rs
attr.stderr
attribute-with-no-generics-in-parameter-list.rs
attribute-with-no-generics-in-parameter-list.stderr
attrs-after-extern-mod.rs
attrs-after-extern-mod.stderr
bad-char-literals.rs
bad-char-literals.stderr
bad-crate-name.rs
bad-crate-name.stderr
bad-escape-suggest-raw-string.rs Use a better link 2023-06-10 14:46:11 -04:00
bad-escape-suggest-raw-string.stderr Use a better link 2023-06-10 14:46:11 -04:00
bad-fn-ptr-qualifier.fixed
bad-fn-ptr-qualifier.rs
bad-fn-ptr-qualifier.stderr
bad-if-statements.rs
bad-if-statements.stderr
bad-interpolated-block.rs
bad-interpolated-block.stderr Add suggestion for bad block fragment error 2023-06-23 19:18:20 +00:00
bad-let-as-field.rs
bad-let-as-field.stderr
bad-lit-suffixes.rs
bad-lit-suffixes.stderr
bad-match.rs
bad-match.stderr
bad-name.rs
bad-name.stderr
bad-pointer-type.rs
bad-pointer-type.stderr
bad-recover-kw-after-impl.rs Do not eagerly recover for bad impl-trait in macros 2023-02-08 17:56:08 +00:00
bad-recover-ty-after-impl.rs Do not eagerly recover for bad impl-trait in macros 2023-02-08 17:56:08 +00:00
bad-struct-following-where.rs
bad-struct-following-where.stderr
bad-value-ident-false.rs
bad-value-ident-false.stderr
bad-value-ident-true.rs
bad-value-ident-true.stderr
bare-struct-body.rs
bare-struct-body.stderr
bastion-of-the-turbofish.rs Update bastion-of-the-turbofish.rs 2023-01-30 14:22:41 +00:00
better-expected.rs
better-expected.stderr
bind-struct-early-modifiers.rs
bind-struct-early-modifiers.stderr
block-no-opening-brace.rs
block-no-opening-brace.stderr
bound-single-question-mark.rs
bound-single-question-mark.stderr
bounds-lifetime-1.rs
bounds-lifetime-1.stderr
bounds-lifetime-2.rs
bounds-lifetime-2.stderr
bounds-lifetime-where-1.rs
bounds-lifetime-where-1.stderr
bounds-lifetime-where.rs
bounds-lifetime-where.stderr
bounds-lifetime.rs
bounds-lifetime.stderr
bounds-obj-parens.rs
bounds-type-where.rs
bounds-type-where.stderr
bounds-type.rs
bounds-type.stderr
builtin-syntax.rs Add feature gate 2023-05-05 21:44:48 +02:00
builtin-syntax.stderr Add feature gate 2023-05-05 21:44:48 +02:00
byte-literals.rs
byte-literals.stderr Use a better link 2023-06-10 14:46:11 -04:00
byte-string-literals.rs
byte-string-literals.stderr Use a better link 2023-06-10 14:46:11 -04:00
can-begin-expr-check.rs
can-begin-expr-check.stderr
chained-comparison-suggestion.rs
chained-comparison-suggestion.stderr
circular_modules_hello.rs
circular_modules_main.rs
circular_modules_main.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
class-implements-bad-trait.rs
class-implements-bad-trait.stderr
closure-return-syntax.rs
closure-return-syntax.stderr
column-offset-1-based.rs
column-offset-1-based.stderr
const-param-decl-on-type-instead-of-impl.rs
const-param-decl-on-type-instead-of-impl.stderr
constraints-before-generic-args-syntactic-pass.rs
constraints-before-generic-args-syntactic-pass.stderr
default-on-wrong-item-kind.rs
default-on-wrong-item-kind.stderr
default-unmatched-assoc.rs
default-unmatched-assoc.stderr
default-unmatched-extern.rs
default-unmatched-extern.stderr
default-unmatched.rs
default-unmatched.stderr Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
default.rs Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
default.stderr Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
deli-ident-issue-1.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
deli-ident-issue-1.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
deli-ident-issue-2.rs add testcase for #104012 2023-01-26 10:52:57 +08:00
deli-ident-issue-2.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
do-catch-suggests-try.rs
do-catch-suggests-try.stderr
do-not-suggest-semicolon-before-array.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
do-not-suggest-semicolon-before-array.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs
do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.stderr
doc-after-struct-field.rs
doc-after-struct-field.stderr
doc-before-attr.rs
doc-before-attr.stderr
doc-before-eof.rs
doc-before-eof.stderr
doc-before-extern-rbrace.rs
doc-before-extern-rbrace.stderr
doc-before-fn-rbrace.rs
doc-before-fn-rbrace.stderr
doc-before-identifier.rs
doc-before-identifier.stderr
doc-before-mod-rbrace.rs
doc-before-mod-rbrace.stderr
doc-before-rbrace.rs
doc-before-rbrace.stderr
doc-before-semi.rs
doc-before-semi.stderr
doc-before-struct-rbrace-1.rs
doc-before-struct-rbrace-1.stderr
doc-before-struct-rbrace-2.rs
doc-before-struct-rbrace-2.stderr
doc-comment-in-if-statement.rs
doc-comment-in-if-statement.stderr
doc-comment-in-stmt.rs
doc-comment-in-stmt.stderr
doc-inside-trait-item.rs
doc-inside-trait-item.stderr
dotdotdot-expr.rs
dotdotdot-expr.stderr
double-pointer.rs
double-pointer.stderr
duplicate-visibility.rs
duplicate-visibility.stderr
duplicate-where-clauses.rs
duplicate-where-clauses.stderr
dyn-trait-compatibility.rs Use smart-resolve when checking for trait in RHS of UFCS 2023-04-07 05:33:52 +00:00
dyn-trait-compatibility.stderr refactor(resolve): clean up the early error return caused by non-call 2023-05-10 22:35:01 +08:00
else-no-if.rs
else-no-if.stderr
emoji-identifiers.rs
emoji-identifiers.stderr
empty-impl-semicolon.rs
empty-impl-semicolon.stderr
eq-less-to-less-eq.rs add hint for =< as <= 2023-05-05 11:17:14 -04:00
eq-less-to-less-eq.stderr add hint for =< as <= 2023-05-05 11:17:14 -04:00
expr-as-stmt-2.rs
expr-as-stmt-2.stderr
expr-as-stmt.fixed
expr-as-stmt.rs
expr-as-stmt.stderr
extern-abi-from-mac-literal-frag.rs
extern-abi-raw-strings.rs
extern-abi-string-escaping.rs
extern-abi-syntactic.rs
extern-crate-async.rs
extern-crate-unexpected-token.rs
extern-crate-unexpected-token.stderr
extern-expected-fn-or-brace.rs
extern-expected-fn-or-brace.stderr
extern-foreign-crate.rs
extern-foreign-crate.stderr
extern-no-fn.rs
extern-no-fn.stderr
float-field-interpolated.rs
float-field-interpolated.stderr
float-field.rs
float-field.stderr
float-literals.rs
fn-arg-doc-comment.rs
fn-arg-doc-comment.stderr
fn-body-eq-expr-semi.rs
fn-body-eq-expr-semi.stderr
fn-body-optional-semantic-fail.rs
fn-body-optional-semantic-fail.stderr
fn-body-optional-syntactic-pass.rs
fn-colon-return-type.rs
fn-colon-return-type.stderr
fn-defined-using-def.rs
fn-defined-using-def.stderr
fn-defined-using-fun.rs
fn-defined-using-fun.stderr
fn-defined-using-func.rs
fn-defined-using-func.stderr
fn-defined-using-function.rs
fn-defined-using-function.stderr
fn-field-parse-error-ice.rs
fn-field-parse-error-ice.stderr
fn-header-semantic-fail.rs Remove identity_future indirection 2023-03-08 15:37:14 +01:00
fn-header-semantic-fail.stderr Remove identity_future indirection 2023-03-08 15:37:14 +01:00
fn-header-syntactic-pass.rs
fn-returns-fn-pointer.rs
foreign-const-semantic-fail.rs
foreign-const-semantic-fail.stderr
foreign-const-syntactic-fail.rs
foreign-const-syntactic-fail.stderr
foreign-static-semantic-fail.rs
foreign-static-semantic-fail.stderr
foreign-static-syntactic-pass.rs
foreign-ty-semantic-fail.rs Fix debug ICE for extern type with where clauses 2023-06-12 15:15:45 +08:00
foreign-ty-semantic-fail.stderr Fix debug ICE for extern type with where clauses 2023-06-12 15:15:45 +08:00
foreign-ty-syntactic-pass.rs
generic-statics.rs Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
generic-statics.stderr Add UI tests for generic const items 2023-07-28 22:23:20 +02:00
ident-recovery.rs feat: implement error recovery in expected_ident_found 2023-03-20 20:54:41 +13:00
ident-recovery.stderr feat: implement error recovery in expected_ident_found 2023-03-20 20:54:41 +13:00
if-block-unreachable-expr.rs
if-in-in.fixed
if-in-in.rs
if-in-in.stderr
impl-item-const-pass.rs
impl-item-const-semantic-fail.rs
impl-item-const-semantic-fail.stderr
impl-item-fn-no-body-pass.rs
impl-item-fn-no-body-semantic-fail.rs
impl-item-fn-no-body-semantic-fail.stderr
impl-item-type-no-body-pass.rs
impl-item-type-no-body-semantic-fail.rs
impl-item-type-no-body-semantic-fail.stderr
impl-on-unsized-typo.rs Recover impl<T ?Sized> correctly 2023-05-15 17:14:59 +00:00
impl-on-unsized-typo.stderr Recover impl<T ?Sized> correctly 2023-05-15 17:14:59 +00:00
impl-parsing.rs
impl-parsing.stderr Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
impl-qpath.rs
import-from-path.rs
import-from-path.stderr
import-from-rename.rs
import-from-rename.stderr
import-glob-path.rs
import-glob-path.stderr
import-glob-rename.rs
import-glob-rename.stderr
increment-autofix-2.fixed
increment-autofix-2.rs
increment-autofix-2.stderr
increment-autofix.fixed
increment-autofix.rs
increment-autofix.stderr
inner-attr-after-doc-comment.rs
inner-attr-after-doc-comment.stderr
inner-attr-in-trait-def.rs
inner-attr.rs
inner-attr.stderr
int-literal-too-large-span.rs
int-literal-too-large-span.stderr
integer-literal-start-ident.rs feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
integer-literal-start-ident.stderr refactor: improve "ident starts with number" error 2023-03-19 20:24:06 +13:00
intersection-patterns-1.fixed
intersection-patterns-1.rs
intersection-patterns-1.stderr
intersection-patterns-2.rs
intersection-patterns-2.stderr
inverted-parameters.rs
inverted-parameters.stderr
issue-17718-parse-const.rs
issue-39616.rs
issue-39616.stderr
issue-49257.rs
issue-49257.stderr Fix suggestion for matching struct with .. on both ends 2023-06-03 15:02:13 +08:00
issue-61858.rs
issue-61858.stderr
issue-68091-unicode-ident-after-if.rs
issue-68091-unicode-ident-after-if.stderr
issue-68092-unicode-ident-after-incomplete-expr.rs
issue-68092-unicode-ident-after-incomplete-expr.stderr
issue-68987-unmatch-issue-1.rs add testcase for #104012 2023-01-26 10:52:57 +08:00
issue-68987-unmatch-issue-1.stderr Improve unexpected close and mismatch delimiter hint in TokenTreesReader 2023-01-27 17:45:41 +08:00
issue-68987-unmatch-issue-2.rs add testcase for #104012 2023-01-26 10:52:57 +08:00
issue-68987-unmatch-issue-2.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-68987-unmatch-issue-3.rs add testcase for #104012 2023-01-26 10:52:57 +08:00
issue-68987-unmatch-issue-3.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-68987-unmatch-issue.rs add testcase for #104012 2023-01-26 10:52:57 +08:00
issue-68987-unmatch-issue.stderr Improve unexpected close and mismatch delimiter hint in TokenTreesReader 2023-01-27 17:45:41 +08:00
issue-81804.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-81804.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
issue-81827.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-81827.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
issue-87694-duplicated-pub.rs
issue-87694-duplicated-pub.stderr
issue-87694-misplaced-pub.rs
issue-87694-misplaced-pub.stderr
issue-90728.rs
issue-90728.stderr
issue-91421.rs
issue-91421.stderr
issue-99625-enum-struct-mutually-exclusive.fixed
issue-99625-enum-struct-mutually-exclusive.rs
issue-99625-enum-struct-mutually-exclusive.stderr
issue-99910-const-let-mutually-exclusive.fixed
issue-99910-const-let-mutually-exclusive.rs
issue-99910-const-let-mutually-exclusive.stderr
issue-100197-mut-let.fixed
issue-100197-mut-let.rs
issue-100197-mut-let.stderr
issue-101477-enum.fixed
issue-101477-enum.rs
issue-101477-enum.stderr Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
issue-101477-let.fixed
issue-101477-let.rs
issue-101477-let.stderr
issue-102806.rs
issue-102806.stderr Recover _ as .. in field pattern 2023-02-02 06:10:02 +00:00
issue-103143.rs
issue-103143.stderr
issue-103381.fixed
issue-103381.rs
issue-103381.stderr
issue-103425.rs
issue-103425.stderr
issue-103451.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-103451.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
issue-103748-ICE-wrong-braces.rs
issue-103748-ICE-wrong-braces.stderr
issue-104620.rs
issue-104620.stderr
issue-104867-inc-dec-2.rs
issue-104867-inc-dec-2.stderr
issue-104867-inc-dec.rs
issue-104867-inc-dec.stderr
issue-105366.fixed
issue-105366.rs
issue-105366.stderr
issue-105634.rs
issue-107705.rs check if snippet is ) 2023-03-03 14:34:11 +09:00
issue-107705.stderr check if snippet is ) 2023-03-03 14:34:11 +09:00
issue-108495-dec.rs micro fmt changes 2023-02-28 19:28:14 +04:00
issue-108495-dec.stderr micro fmt changes 2023-02-28 19:28:14 +04:00
issue-112188.fixed Fix suggestion for matching struct with .. on both ends 2023-06-03 15:02:13 +08:00
issue-112188.rs Fix suggestion for matching struct with .. on both ends 2023-06-03 15:02:13 +08:00
issue-112188.stderr Fix suggestion for matching struct with .. on both ends 2023-06-03 15:02:13 +08:00
issue-113342.rs Fix the issue of wrong diagnosis for extern pub fn 2023-07-05 16:25:46 +08:00
issue-113342.stderr Fix the issue of wrong diagnosis for extern pub fn 2023-07-05 16:25:46 +08:00
item-free-const-no-body-semantic-fail.rs
item-free-const-no-body-semantic-fail.stderr
item-free-const-no-body-syntactic-pass.rs
item-free-static-no-body-semantic-fail.rs
item-free-static-no-body-semantic-fail.stderr
item-free-static-no-body-syntactic-pass.rs
item-free-type-bounds-semantic-fail.rs
item-free-type-bounds-semantic-fail.stderr
item-free-type-bounds-syntactic-pass.rs
item-kw-case-mismatch.fixed Migrate trivially translatable rustc_parse diagnostics 2023-04-27 01:53:06 +01:00
item-kw-case-mismatch.rs Migrate trivially translatable rustc_parse diagnostics 2023-04-27 01:53:06 +01:00
item-kw-case-mismatch.stderr Migrate trivially translatable rustc_parse diagnostics 2023-04-27 01:53:06 +01:00
item-needs-block.rs
item-needs-block.stderr
keyword-abstract.rs
keyword-abstract.stderr
keyword-as-as-identifier.rs
keyword-as-as-identifier.stderr
keyword-box-as-identifier.rs
keyword-box-as-identifier.stderr
keyword-break-as-identifier.rs
keyword-break-as-identifier.stderr
keyword-const-as-identifier.rs
keyword-const-as-identifier.stderr
keyword-continue-as-identifier.rs
keyword-continue-as-identifier.stderr
keyword-else-as-identifier.rs
keyword-else-as-identifier.stderr
keyword-enum-as-identifier.rs
keyword-enum-as-identifier.stderr
keyword-final.rs
keyword-final.stderr
keyword-fn-as-identifier.rs
keyword-fn-as-identifier.stderr
keyword-for-as-identifier.rs
keyword-for-as-identifier.stderr
keyword-if-as-identifier.rs
keyword-if-as-identifier.stderr
keyword-impl-as-identifier.rs
keyword-impl-as-identifier.stderr
keyword-in-as-identifier.rs
keyword-in-as-identifier.stderr
keyword-let-as-identifier.rs
keyword-let-as-identifier.stderr
keyword-loop-as-identifier.rs
keyword-loop-as-identifier.stderr
keyword-match-as-identifier.rs
keyword-match-as-identifier.stderr
keyword-mod-as-identifier.rs
keyword-mod-as-identifier.stderr
keyword-move-as-identifier.rs
keyword-move-as-identifier.stderr
keyword-mut-as-identifier.rs
keyword-mut-as-identifier.stderr
keyword-override.rs
keyword-override.stderr
keyword-pub-as-identifier.rs
keyword-pub-as-identifier.stderr
keyword-ref-as-identifier.rs
keyword-ref-as-identifier.stderr
keyword-return-as-identifier.rs
keyword-return-as-identifier.stderr
keyword-static-as-identifier.rs
keyword-static-as-identifier.stderr
keyword-struct-as-identifier.rs
keyword-struct-as-identifier.stderr
keyword-trait-as-identifier.rs
keyword-trait-as-identifier.stderr
keyword-try-as-identifier-edition2018.rs
keyword-try-as-identifier-edition2018.stderr
keyword-type-as-identifier.rs
keyword-type-as-identifier.stderr
keyword-typeof.rs
keyword-typeof.stderr
keyword-union-as-identifier.rs Parse unnamed fields and anonymous structs or unions 2023-08-24 11:17:54 +08:00
keyword-unsafe-as-identifier.rs
keyword-unsafe-as-identifier.stderr
keyword-use-as-identifier.rs
keyword-use-as-identifier.stderr
keyword-where-as-identifier.rs
keyword-where-as-identifier.stderr
keyword-while-as-identifier.rs
keyword-while-as-identifier.stderr
keyword.rs
keyword.stderr
keywords-followed-by-double-colon.rs
keywords-followed-by-double-colon.stderr
kw-in-trait-bounds.rs
kw-in-trait-bounds.stderr
label-after-block-like.rs
label-after-block-like.stderr
label-is-actually-char.rs
label-is-actually-char.stderr
labeled-no-colon-expr.rs
labeled-no-colon-expr.stderr Add suggestion for bad block fragment error 2023-06-23 19:18:20 +00:00
let-binop.fixed
let-binop.rs
let-binop.stderr
lifetime_starts_expressions.rs
lifetime_starts_expressions.stderr
lifetime-in-pattern-recover.rs
lifetime-in-pattern-recover.stderr
lifetime-in-pattern.rs
lifetime-in-pattern.stderr
lifetime-semicolon.fixed
lifetime-semicolon.rs
lifetime-semicolon.stderr
lit-err-in-macro.rs Handle interpolated literal errors 2023-06-15 01:55:37 +00:00
lit-err-in-macro.stderr Handle interpolated literal errors 2023-06-15 01:55:37 +00:00
macro-bad-delimiter-ident.rs
macro-bad-delimiter-ident.stderr
macro-braces-dot-question.rs
macro-keyword.rs
macro-keyword.stderr
macro-mismatched-delim-brace-paren.rs
macro-mismatched-delim-brace-paren.stderr
macro-mismatched-delim-paren-brace.rs
macro-mismatched-delim-paren-brace.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
macros-no-semicolon-items.rs
macros-no-semicolon-items.stderr
macros-no-semicolon.rs
macros-no-semicolon.stderr
match-arm-without-braces.rs
match-arm-without-braces.stderr generalize help message 2023-02-26 11:58:49 +01:00
match-arrows-block-then-binop.rs
match-arrows-block-then-binop.stderr
match-refactor-to-expr.fixed
match-refactor-to-expr.rs
match-refactor-to-expr.stderr
mbe_missing_right_paren.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
mbe_missing_right_paren.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
method-call-on-struct-literal-in-if-condition.rs
method-call-on-struct-literal-in-if-condition.stderr reword the message to suggest surrounding with parentheses 2023-06-10 06:28:35 +08:00
mismatched-delim-brace-empty-block.rs
mismatched-delim-brace-empty-block.stderr
missing_right_paren.rs remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
missing_right_paren.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
missing-closing-angle-bracket-eq-constraint.rs Don't expose type parameters and implementation details from macro expansion 2023-02-09 15:15:15 +08:00
missing-closing-angle-bracket-eq-constraint.stderr Don't expose type parameters and implementation details from macro expansion 2023-02-09 15:15:15 +08:00
missing-closing-angle-bracket-struct-field-ty.rs
missing-closing-angle-bracket-struct-field-ty.stderr
missing-expression-in-for-loop.rs Add ui test for missing expression in for loop 2023-02-05 17:33:17 +03:00
missing-expression-in-for-loop.stderr Add ui test for missing expression in for loop 2023-02-05 17:33:17 +03:00
missing-semicolon.rs
missing-semicolon.stderr
misspelled-macro-rules.fixed
misspelled-macro-rules.rs
misspelled-macro-rules.stderr
mod_file_not_exist_windows.rs
mod_file_not_exist_windows.stderr
mod_file_not_exist.rs
mod_file_not_exist.stderr
mod_file_with_path_attr.rs
mod_file_with_path_attr.stderr
multibyte-char-use-seperator-issue-80134.rs
multibyte-char-use-seperator-issue-80134.stderr
multiline-comment-line-tracking.rs
multiline-comment-line-tracking.stderr
multitrait.rs
multitrait.stderr
mut-patterns.rs
mut-patterns.stderr
nested-bad-turbofish.rs
nested-bad-turbofish.stderr
nested-missing-closing-angle-bracket.rs
nested-missing-closing-angle-bracket.stderr
new-unicode-escapes-1.rs
new-unicode-escapes-1.stderr
new-unicode-escapes-2.rs
new-unicode-escapes-2.stderr
new-unicode-escapes-3.rs
new-unicode-escapes-3.stderr
new-unicode-escapes-4.rs
new-unicode-escapes-4.stderr
no-binary-float-literal.rs
no-binary-float-literal.stderr
no-const-fn-in-extern-block.rs
no-const-fn-in-extern-block.stderr
no-hex-float-literal.rs
no-hex-float-literal.stderr
no-unsafe-self.rs
no-unsafe-self.stderr
not-a-pred.rs
not-a-pred.stderr
nt-parsing-has-recovery.rs
nt-parsing-has-recovery.stderr
numeric-lifetime.rs Revert "Don't recover lifetimes/labels containing emojis as character literals" 2023-04-10 06:52:41 +00:00
numeric-lifetime.stderr Revert "Don't recover lifetimes/labels containing emojis as character literals" 2023-04-10 06:52:41 +00:00
obsolete-syntax-impl-for-dotdot.rs
obsolete-syntax-impl-for-dotdot.stderr
old-suffixes-are-really-forbidden.rs
old-suffixes-are-really-forbidden.stderr
omitted-arg-in-item-fn.rs
omitted-arg-in-item-fn.stderr
operator-associativity.rs
paamayim-nekudotayim.rs
paamayim-nekudotayim.stderr
parse-assoc-type-lt.rs
parse-error-correct.rs
parse-error-correct.stderr
parse-panic.rs
parser-recovery-1.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
parser-recovery-1.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
parser-recovery-2.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
parser-recovery-2.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
parser-unicode-whitespace.rs
pat-lt-bracket-1.rs
pat-lt-bracket-1.stderr
pat-lt-bracket-2.rs
pat-lt-bracket-2.stderr
pat-lt-bracket-3.rs Suggests turbofish in patterns 2023-08-01 23:30:40 +08:00
pat-lt-bracket-3.stderr Suggests turbofish in patterns 2023-08-01 23:30:40 +08:00
pat-lt-bracket-4.rs Suggests turbofish in patterns 2023-08-01 23:30:40 +08:00
pat-lt-bracket-4.stderr Suggests turbofish in patterns 2023-08-01 23:30:40 +08:00
pat-lt-bracket-5.rs
pat-lt-bracket-5.stderr
pat-lt-bracket-6.rs
pat-lt-bracket-6.stderr
pat-lt-bracket-7.rs
pat-lt-bracket-7.stderr
pat-ranges-1.rs
pat-ranges-1.stderr
pat-ranges-2.rs
pat-ranges-2.stderr
pat-ranges-3.rs
pat-ranges-3.stderr
pat-ranges-4.rs
pat-ranges-4.stderr
pat-ref-enum.rs
pat-ref-enum.stderr
pat-tuple-1.rs
pat-tuple-1.stderr
pat-tuple-2.rs
pat-tuple-3.rs
pat-tuple-3.stderr
pub-method-macro.rs
pub-method-macro.stderr
public-instead-of-pub-1.fixed
public-instead-of-pub-1.rs
public-instead-of-pub-1.stderr
public-instead-of-pub-2.rs
public-instead-of-pub-2.stderr
public-instead-of-pub-3.fixed
public-instead-of-pub-3.rs
public-instead-of-pub-3.stderr
public-instead-of-pub.fixed
public-instead-of-pub.rs
public-instead-of-pub.stderr
qualified-path-in-turbofish.fixed
qualified-path-in-turbofish.rs
qualified-path-in-turbofish.stderr
range_inclusive_dotdotdot.rs
range_inclusive_dotdotdot.stderr
range_inclusive.fixed
range_inclusive.rs
range_inclusive.stderr
range-3.rs
range-3.stderr
range-4.rs
range-4.stderr
range-inclusive-extra-equals.rs
range-inclusive-extra-equals.stderr
ranges-precedence.rs
recover-assoc-const-constraint.rs
recover-assoc-const-constraint.stderr
recover-assoc-eq-missing-term.rs
recover-assoc-eq-missing-term.stderr
recover-assoc-lifetime-constraint.rs
recover-assoc-lifetime-constraint.stderr
recover-const-async-fn-ptr.rs
recover-const-async-fn-ptr.stderr
recover-enum2.rs
recover-enum2.stderr
recover-enum.rs
recover-enum.stderr
recover-field-extra-angle-brackets-in-struct-with-a-field.rs
recover-field-extra-angle-brackets-in-struct-with-a-field.stderr
recover-field-extra-angle-brackets.rs
recover-field-extra-angle-brackets.stderr
recover-field-semi.rs
recover-field-semi.stderr
recover-fn-ptr-with-generics.rs
recover-fn-ptr-with-generics.stderr Add feature gate for non_lifetime_binders 2023-02-16 03:39:58 +00:00
recover-fn-trait-from-fn-kw.rs
recover-fn-trait-from-fn-kw.stderr
recover-for-loop-parens-around-head.rs
recover-for-loop-parens-around-head.stderr
recover-from-bad-variant.rs
recover-from-bad-variant.stderr
recover-from-homoglyph.rs
recover-from-homoglyph.stderr
recover-labeled-non-block-expr.fixed
recover-labeled-non-block-expr.rs
recover-labeled-non-block-expr.stderr
recover-missing-semi-before-item.fixed
recover-missing-semi-before-item.rs
recover-missing-semi-before-item.stderr
recover-missing-semi.rs
recover-missing-semi.stderr
recover-quantified-closure.rs fix parser mistaking const closures for const item 2023-02-01 06:44:30 +00:00
recover-quantified-closure.stderr fix parser mistaking const closures for const item 2023-02-01 06:44:30 +00:00
recover-range-pats.rs
recover-range-pats.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
recover-ref-dyn-mut.rs
recover-ref-dyn-mut.stderr
recover-struct.rs
recover-struct.stderr
recover-tuple-pat.rs
recover-tuple-pat.stderr
recover-tuple.rs
recover-tuple.stderr
recover-unticked-labels.fixed Recover labels written as identifiers 2023-01-13 09:18:36 +00:00
recover-unticked-labels.rs Recover labels written as identifiers 2023-01-13 09:18:36 +00:00
recover-unticked-labels.stderr Migrate trivially translatable rustc_parse diagnostics 2023-04-27 01:53:06 +01:00
recover-where-clause-before-tuple-struct-body-0.fixed parser: recover from where clauses placed before tuple struct bodies 2023-01-11 17:54:48 +01:00
recover-where-clause-before-tuple-struct-body-0.rs parser: recover from where clauses placed before tuple struct bodies 2023-01-11 17:54:48 +01:00
recover-where-clause-before-tuple-struct-body-0.stderr parser: recover from where clauses placed before tuple struct bodies 2023-01-11 17:54:48 +01:00
recover-where-clause-before-tuple-struct-body-1.rs parser: recover from where clauses placed before tuple struct bodies 2023-01-11 17:54:48 +01:00
recover-where-clause-before-tuple-struct-body-1.stderr parser: recover from where clauses placed before tuple struct bodies 2023-01-11 17:54:48 +01:00
recovered-struct-variant.rs
recovered-struct-variant.stderr
regions-out-of-scope-slice.rs
regions-out-of-scope-slice.stderr
removed-syntax-box.fixed Add recovery for use of removed box syntax 2023-03-12 13:26:37 +00:00
removed-syntax-box.rs Add recovery for use of removed box syntax 2023-03-12 13:26:37 +00:00
removed-syntax-box.stderr Add recovery for use of removed box syntax 2023-03-12 13:26:37 +00:00
removed-syntax-closure-lifetime.rs
removed-syntax-closure-lifetime.stderr
removed-syntax-enum-newtype.rs
removed-syntax-enum-newtype.stderr
removed-syntax-field-let-2.rs
removed-syntax-field-let-2.stderr
removed-syntax-field-let.rs
removed-syntax-field-let.stderr
removed-syntax-field-semicolon.rs
removed-syntax-field-semicolon.stderr
removed-syntax-fixed-vec.rs
removed-syntax-fixed-vec.stderr
removed-syntax-fn-sigil.rs
removed-syntax-fn-sigil.stderr
removed-syntax-mode.rs
removed-syntax-mode.stderr
removed-syntax-mut-vec-expr.rs
removed-syntax-mut-vec-expr.stderr
removed-syntax-mut-vec-ty.rs
removed-syntax-mut-vec-ty.stderr
removed-syntax-ptr-lifetime.rs
removed-syntax-ptr-lifetime.stderr
removed-syntax-record.rs
removed-syntax-record.stderr
removed-syntax-static-fn.rs
removed-syntax-static-fn.stderr
removed-syntax-uniq-mut-expr.rs
removed-syntax-uniq-mut-expr.stderr
removed-syntax-uniq-mut-ty.rs
removed-syntax-uniq-mut-ty.stderr
removed-syntax-with-1.rs
removed-syntax-with-1.stderr
removed-syntax-with-2.rs
removed-syntax-with-2.stderr
require-parens-for-chained-comparison.rs
require-parens-for-chained-comparison.stderr
self-in-function-arg.rs
self-in-function-arg.stderr
self-param-semantic-fail.rs
self-param-semantic-fail.stderr
self-param-syntactic-pass.rs
semi-after-closure-in-macro.rs
several-carriage-returns-in-doc-comment.rs
several-carriage-returns-in-doc-comment.stderr
similar-tokens.rs
similar-tokens.stderr
slowparse-bstring.rs
slowparse-string.rs
stmt_expr_attrs_placement.rs
stmt_expr_attrs_placement.stderr
stripped-nested-outline-mod-pass.rs
struct-default-values-and-missing-field-separator.fixed
struct-default-values-and-missing-field-separator.rs
struct-default-values-and-missing-field-separator.stderr
struct-field-numeric-shorthand.rs
struct-field-numeric-shorthand.stderr
struct-filed-with-attr.fixed
struct-filed-with-attr.rs
struct-filed-with-attr.stderr
struct-literal-in-for.rs
struct-literal-in-for.stderr
struct-literal-in-if.rs Add tests for struct literals in if let/while let 2023-08-28 10:30:48 +01:00
struct-literal-in-if.stderr Add tests for struct literals in if let/while let 2023-08-28 10:30:48 +01:00
struct-literal-in-match-discriminant.rs
struct-literal-in-match-discriminant.stderr
struct-literal-in-match-guard.rs Allow stuct literals in if let guards 2023-08-28 10:31:45 +01:00
struct-literal-in-while.rs Add tests for struct literals in if let/while let 2023-08-28 10:30:48 +01:00
struct-literal-in-while.stderr Add tests for struct literals in if let/while let 2023-08-28 10:30:48 +01:00
struct-literal-restrictions-in-lamda.rs
struct-literal-restrictions-in-lamda.stderr
struct-literal-variant-in-if.rs
struct-literal-variant-in-if.stderr
suggest-assoc-const.fixed
suggest-assoc-const.rs
suggest-assoc-const.stderr
suggest-const-for-global-var.rs
suggest-const-for-global-var.stderr
suggest-removing-semicolon-after-impl-trait-items.fixed
suggest-removing-semicolon-after-impl-trait-items.rs
suggest-removing-semicolon-after-impl-trait-items.stderr
suggest-semi-in-array.rs
suggest-semi-in-array.stderr
suggest-semicolon-before-array.fixed
suggest-semicolon-before-array.rs
suggest-semicolon-before-array.stderr
ternary_operator.rs Remove unnecessary maybe_ternary_lo field 2023-07-25 18:37:56 +00:00
ternary_operator.stderr Remove unnecessary maybe_ternary_lo field 2023-07-25 18:37:56 +00:00
trailing-carriage-return-in-string.rs
trailing-carriage-return-in-string.stderr
trailing-plus-in-bounds.rs
trailing-question-in-macro-type.rs
trailing-question-in-macro-type.stderr
trailing-question-in-type.fixed
trailing-question-in-type.rs
trailing-question-in-type.stderr
trait-bounds-not-on-impl.rs
trait-bounds-not-on-impl.stderr
trait-item-with-defaultness-fail-semantic.rs
trait-item-with-defaultness-fail-semantic.stderr
trait-item-with-defaultness-pass.rs
trait-object-bad-parens.rs
trait-object-bad-parens.stderr
trait-object-delimiters.rs Fix bad suggestion when wrong parentheses around a dyn trait 2023-08-16 00:26:10 +08:00
trait-object-delimiters.stderr Fix bad suggestion when wrong parentheses around a dyn trait 2023-08-16 00:26:10 +08:00
trait-object-lifetime-parens.rs
trait-object-lifetime-parens.stderr
trait-object-polytrait-priority.rs
trait-object-polytrait-priority.stderr
trait-object-trait-parens.rs
trait-object-trait-parens.stderr
trait-plusequal-splitting.rs
trait-pub-assoc-const.rs Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
trait-pub-assoc-const.stderr Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
trait-pub-assoc-ty.rs Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
trait-pub-assoc-ty.stderr Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
trait-pub-method.rs Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
trait-pub-method.stderr Update ui tests involving invalid visibility qualifiers 2023-04-03 22:28:55 -05:00
try-with-nonterminal-block.rs Support interpolated block for try and async 2023-07-22 15:22:12 +00:00
type-ascription-in-pattern.rs Parse and recover from type ascription in patterns 2023-02-02 17:18:48 +00:00
type-ascription-in-pattern.stderr Parse and recover from type ascription in patterns 2023-02-02 17:18:48 +00:00
type-parameters-in-field-exprs.rs
type-parameters-in-field-exprs.stderr
typod-const-in-const-param-def.rs Recover upon encountering mistyped Const in const param def 2023-05-28 16:55:21 +08:00
typod-const-in-const-param-def.stderr Recover upon encountering mistyped Const in const param def 2023-05-28 16:55:21 +08:00
unbalanced-doublequote.rs
unbalanced-doublequote.stderr
unclosed_delim_mod.rs
unclosed_delim_mod.stderr
unclosed-braces.rs
unclosed-braces.stderr
unclosed-delimiter-in-dep.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
unclosed-delimiter-in-dep.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
underscore_item_not_const.rs
underscore_item_not_const.stderr
underscore-suffix-for-float.rs
underscore-suffix-for-float.stderr
underscore-suffix-for-string.rs
underscore-suffix-for-string.stderr
unicode-character-literal.fixed
unicode-character-literal.rs
unicode-character-literal.stderr
unicode-chars.rs Add double-equals homoglyph 2023-01-19 02:25:55 +00:00
unicode-chars.stderr Add double-equals homoglyph 2023-01-19 02:25:55 +00:00
unicode-control-codepoints.rs
unicode-control-codepoints.stderr
unicode-quote-chars.rs
unicode-quote-chars.stderr
unmatched-delimiter-at-end-of-file.rs
unmatched-delimiter-at-end-of-file.stderr
unmatched-langle-1.rs
unmatched-langle-1.stderr
unmatched-langle-2.rs
unmatched-langle-2.stderr
unnecessary-let.rs
unnecessary-let.stderr
unsafe-foreign-mod-2.rs
unsafe-foreign-mod-2.stderr
unsafe-foreign-mod.rs
unsafe-foreign-mod.stderr
unsafe-mod.rs
unsafe-mod.stderr
unsized2.rs
unsized2.stderr
unsized.rs
unsized.stderr
use-as-where-use-ends-with-mod-sep.rs
use-as-where-use-ends-with-mod-sep.stderr
use-colon-as-mod-sep.rs
use-colon-as-mod-sep.stderr Migrate trivially translatable rustc_parse diagnostics 2023-04-27 01:53:06 +01:00
use-ends-with-mod-sep.rs
use-ends-with-mod-sep.stderr
use-unclosed-brace.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
use-unclosed-brace.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
utf8_idents-rpass.rs
utf16-be-without-bom.rs
utf16-be-without-bom.stderr Detect extra space in keyword for better hint 2023-07-04 18:13:31 +08:00
utf16-le-without-bom.rs
utf16-le-without-bom.stderr Detect extra space in keyword for better hint 2023-07-04 18:13:31 +08:00
variadic-ffi-nested-syntactic-fail.rs
variadic-ffi-nested-syntactic-fail.stderr
variadic-ffi-semantic-restrictions.rs
variadic-ffi-semantic-restrictions.stderr
variadic-ffi-syntactic-pass.rs
virtual-structs.rs
virtual-structs.stderr Add explanatory note to 'expected item' error 2023-09-06 09:05:07 +05:30
where_with_bound.rs
where_with_bound.stderr
where-clauses-no-bounds-or-predicates.rs
where-clauses-no-bounds-or-predicates.stderr
while-if-let-without-body.rs
while-if-let-without-body.stderr
wrong-escape-of-curly-braces.rs
wrong-escape-of-curly-braces.stderr