Skip to content

cargo fix: Remove extern crate when migrating to Rust 2018 #5829

Closed
@johnthagen

Description

@johnthagen

It's been mentioned/requested multiple times on the internals thread that cargo fix should remove the extern crate statements when moving to Rust 2018.

Motivation

One of the big draws of Rust 2018's module system is that all of the "redundant" extern crate lines can finally be removed. It took some of the excitement away when I went through all of the cargo fix steps and still saw them there. I think it will just be a better experience for users to see one of the tangible benefits of this change. As it is right now, they just see the crate:: in front of all of their local imports and they might not realize what a nice change the module system updates really are.

After I manually removed the extern crate's I did get my satisfying result 😄, but let's give this to users on the first go around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions