about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-04-03 12:42:52 +0000
committerGitHub <noreply@github.com>2022-04-03 12:42:52 +0000
commit63d2df1e36570447cd069fe4eb79b47597153ee5 (patch)
tree2af9460aade8f67f9a0719cd189ebfec1d7b0385 /src/test/debuginfo/enum-thinlto.rs
parentbc0825d1358abece6e85b928ea3a197451d083c7 (diff)
parent520557d45c15375f32cb838ed2e2030b86d11fd2 (diff)
downloadrust-63d2df1e36570447cd069fe4eb79b47597153ee5.tar.gz
rust-63d2df1e36570447cd069fe4eb79b47597153ee5.zip
Merge #11699
11699: feat: assist to remove unneeded `async`s r=Ethiraric a=Ethiraric

This should fix #11392 

This PR adds a quickfix on functions marked with `async` that suggests, if and only if no `await` expression in find in the body of the function (it relies on `SyntaxNode::descendants()` to recursively traverse blocks), to remove the `async` keyword.

The lint is made so that it triggers only if the cursor is not in the body of the function, so that it does not pollute the quickfix list.

It does not trigger a diagnostic. I don't know if this repository is the place to implement those (`clippy`?). If it is, I would very much like pointers on where to start looking.

If there are test cases I haven't thought about, please do suggest.

Co-authored-by: Ethiraric <ethiraric@gmail.com>
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions