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

Spurious "unused lifetime parameter" warning with async function #64493

Closed
varkor opened this issue Sep 15, 2019 · 2 comments · Fixed by #64603
Closed

Spurious "unused lifetime parameter" warning with async function #64493

varkor opened this issue Sep 15, 2019 · 2 comments · Fixed by #64603
Assignees
Labels
A-async-await Area: Async & Await A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@varkor
Copy link
Member

varkor commented Sep 15, 2019

#![warn(unused_lifetimes)]

async fn async_fn(&ref mut s: &[i32]) {} //~ WARN lifetime parameter `'_` never used
@varkor varkor added A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. A-async-await Area: Async & Await labels Sep 15, 2019
@gilescope
Copy link
Contributor

@rustbot claim

@varkor
Copy link
Member Author

varkor commented Sep 19, 2019

Duplicate of #61115.

@varkor varkor closed this as completed Sep 19, 2019
Centril added a commit to Centril/rust that referenced this issue Oct 15, 2019
…r=matthewjasper

Reducing spurious unused lifetime warnings.

Fixes rust-lang#61115, fixes rust-lang#64493.
tmandry added a commit to tmandry/rust that referenced this issue Oct 15, 2019
…r=matthewjasper

Reducing spurious unused lifetime warnings.

Fixes rust-lang#61115, fixes rust-lang#64493.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-async-await Area: Async & Await A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants