Skip to content

Async: reserved keyword #357

@theduke

Description

@theduke

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 asyn or use 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-rfcBlocked: Request for comments. More discussion would help move this along.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions