Skip to content

cargo fix prepare-for 2018 errors after due to 'async' identifier #5783

@seanmonstar

Description

@seanmonstar

I tried out cargo fix --prepare-for 2018 on hyper, and after it ran, it showed an error and claimed it was a bug in cargo or rustc, and to report it here. There is an identifier currently named async in a file, here: https://github.com/hyperium/hyper/blob/069a32b1acc5ece35643c26cf5d9972dace5481c/src/body/body.rs#L268

In this specific case, it would have been fine to just renamed that binding to async_, or perhaps r#async. I'm not sure if trying to do that automatically would accidentally name async blocks or functions wrongly, though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions