Closed
Description
Async functions that take references seem to always trigger the unused-lifetimes
lint (which is allow-by-default). Example:
#![feature(async_await)]
#![warn(unused_lifetimes)]
pub async fn print(s: &str) {
println!("{}", s);
}
warning: lifetime parameter `'_` never used
--> src/lib.rs:5:23
|
5 | pub async fn print(s: &str) {
| ^
|
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitArea: Lifetimes / regionsArea: Lints (warnings about flaws in source code) such as unused_mut.Async-await issues that are part of the "polish" areaAsync-await issues that have been triaged during a working group meeting.Category: This is a bug.Relevant to the compiler team, which will review and decide on the PR/issue.