-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Async: reserved keyword #357
Copy link
Copy link
Closed
Labels
B-rfcBlocked: Request for comments. More discussion would help move this along.Blocked: Request for comments. More discussion would help move this along.
Metadata
Metadata
Assignees
Labels
B-rfcBlocked: Request for comments. More discussion would help move this along.Blocked: Request for comments. More discussion would help move this along.
In the 2018 edition, and already on nightly, async is a reserved word.
So while reqwest still compiles because it is compiled as 2015 edition, the async async module can't be used without a compilation error for reserved keyword usage.
This can be circumvented with a raw identifier (eg:
use reqwest::r#async as asynoruse reqwest::r#async::Client), but this is obviously really awkward.The async module will have to be renamed, which will force a version bump so it's a shame we didn't notice before 0.9 but what can you do.
It would be nice to get this out rather soon though, because nightly already has edition 2018 enabled by default when creating a new crate.