diff options
| author | surechen <chenshuo17@huawei.com> | 2021-11-19 16:46:34 +0800 |
|---|---|---|
| committer | surechen <chenshuo17@huawei.com> | 2021-11-21 14:28:44 +0800 |
| commit | 846c0bef075922032ea21a42750fdadfe2542e5a (patch) | |
| tree | b8d9e7c6ed07023d8edfd28b3e57d9e9753adaec /compiler/rustc_codegen_llvm/src | |
| parent | bb58dc84c11c7699b1289f802c548d6a156a6eb7 (diff) | |
| download | rust-846c0bef075922032ea21a42750fdadfe2542e5a.tar.gz rust-846c0bef075922032ea21a42750fdadfe2542e5a.zip | |
Fixes #7915
Fix shadow_same's positive false for async function's params:
Example Code:
```rust
#![deny(clippy::shadow_same)]
pub async fn foo(_a: i32) {
}
```
Output:
```
error: `_a` is shadowed by itself in `_a
```
Hir:
```rust
pub async fn foo(_a: i32)
->
/*impl Trait*/ #[lang = "from_generator"](move |mut _task_context|
{
let _a = _a;
{ let _t = { }; _t }
})
```
Skip checking async function's params.
changelog: Fix shadow_same's positive false for async function's params
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
