Skip to content

Pretty-print mode to replace glob imports with a precise list of names #617

@steveklabnik

Description

@steveklabnik

Issue by bstrie
Monday Feb 04, 2013 at 19:05 GMT

For earlier discussion, see rust-lang/rust#4786

This issue was labelled with: A-pretty, A-resolve, I-wishlist in the Rust repository


13:58 < bstrie> is there a pretty-print mode to replace a glob import with a
                precise list of names?
13:59 <@pcwalton> bstrie: no unfortunately
13:59 <@pcwalton> good idea though

So if I have a file with this:

use foo::*;

...and of all the things that foo provides, I only ever end up using bar and baz, then it should rewrite the import to:

use foo::{bar, baz};

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-dev-toolsRelevant to the development tools team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions