Commit fc787b5
committed
Make parse error suggestions verbose and fix spans
Go over all structured parser suggestions and make them verbose style.
When suggesting to add or remove delimiters, turn them into multiple suggestion parts.1 parent bcf1f6d commit fc787b5
175 files changed
Lines changed: 3197 additions & 786 deletions
File tree
- compiler/rustc_parse
- src
- parser
- tests
- rustdoc-ui/doctest
- ui
- async-await/await-keyword
- attributes
- conditional-compilation
- consts/const-eval
- coverage-attr
- did_you_mean
- enum
- error-codes
- expr/if/attrs
- extern
- fmt
- fn
- generics
- half-open-range-patterns
- impl-trait
- issues
- label
- let-else
- lexer
- macros
- malformed
- object-safety
- operator-recovery
- or-patterns
- parser
- attribute
- char
- issues
- macro
- raw
- recover
- removed-syntax
- pattern
- bindings-after-at
- pub
- range
- rfcs/rfc-0000-never_patterns
- self
- structs
- suggestions
- typeck
- type
- ascription
- pattern_types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
0 commit comments