about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2021-08-02 11:10:19 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2021-08-02 11:10:19 +0200
commit690cbb79b396fa327b2381ab5e8fb22702623df5 (patch)
treeeb4ed7058377657c914c6bf238e3deda7c4a59bd /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentf381e77d3590bc36f09b0d48cffb504f92febf5e (diff)
downloadrust-690cbb79b396fa327b2381ab5e8fb22702623df5.tar.gz
rust-690cbb79b396fa327b2381ab5e8fb22702623df5.zip
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions