1
Fork 0
rust/compiler/rustc_parse
Alexis Bourget 690cbb79b3 Better message for invalid keyword placement in fn
After this commit, `unsafe async fn ...` now suggests the `async unsafe` fix
instead of misunderstanding the issue.

This is not perfect for repeated keywords (`const async const`) and for
keywords that are misplaced after `extern "some abi"` because of the way
`check_fn_font_matter` works, but changing it breaks so many tests and
diagnostics it has been judged too high a cost for this PR.
2021-08-02 11:10:19 +02:00
..
src Better message for invalid keyword placement in fn 2021-08-02 11:10:19 +02:00
Cargo.toml rustc_parse: Remove unused dependency smallvec 2021-06-25 01:12:59 -07:00