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

Comments

@varkor
Copy link
Member

@varkor varkor commented Sep 15, 2019

#![warn(unused_lifetimes)]

async fn async_fn(&ref mut s: &[i32]) {} //~ WARN lifetime parameter `'_` never used
@gilescope
Copy link
Contributor

@gilescope gilescope commented Sep 17, 2019

@rustbot claim

@varkor
Copy link
Member Author

@varkor varkor commented Sep 19, 2019

Duplicate of #61115.

@varkor varkor closed this 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants