Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables in compile_submatch. #7997

Closed
wants to merge 1 commit into from
Closed

Remove unused variables in compile_submatch. #7997

wants to merge 1 commit into from

Conversation

omasanori
Copy link
Contributor

Just an minor cleanup.

Just an minor cleanup.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
bors added a commit that referenced this pull request Jul 24, 2013
@bors bors closed this Jul 24, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 23, 2021
Fixes shadow_same's false positive for rust-lang#7915

Fix shadow_same's false positive for async function's params(Fixes rust-lang#7915):

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 false positive for async function's params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants