about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-06-14 07:47:22 +0900
committerGitHub <noreply@github.com>2022-06-14 07:47:22 +0900
commite3a3c00be805c265e5be3b478d76423371459c3b (patch)
treee75f4d8fea7902be9326c077404f7a103bc35679 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentca122c7ebb3ab50149c9d3d24ddb59c252b32272 (diff)
parent21fdd549f63499a6f15160c22175cc9c3bbeb473 (diff)
downloadrust-e3a3c00be805c265e5be3b478d76423371459c3b.tar.gz
rust-e3a3c00be805c265e5be3b478d76423371459c3b.zip
Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errors
Improve parser diagnostics

This pr fixes https://github.com/rust-lang/rust/issues/93867 and contains a couple of diagnostics related changes to the parser.
Here is a short list with some of the changes:
- don't suggest the same thing that is the current token
- suggest removing the current token if the following token is one of the suggestions (maybe incorrect)
- tell the user to put a type or lifetime after where if there is none (as a warning)
- reduce the amount of tokens suggested (via the new eat_noexpect and check_noexpect methods)

If any of these changes are undesirable, i can remove them, thanks!
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions