Skip to content

Conversation

@jbr
Copy link
Contributor

@jbr jbr commented Aug 3, 2020

closes #5657 , see issue for rationale

Initially I wrote a version of this that changed the signature of insert_use_statement to take an Option<VisibilityKind> and only add to use statements with the same visibility, but that didn't make sense for any of the current uses of insert_use_statement (they all expected private visibility).

@jbr jbr changed the title do not add to pub use statements do not add to pub use statements in assists that insert a use statement Aug 3, 2020
@jbr jbr changed the title do not add to pub use statements in assists that insert a use statement do not add to pub use in assists that insert a use statement Aug 3, 2020
@jonas-schievink
Copy link
Contributor

Thanks, looks good!

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 4, 2020

@bors bors bot merged commit af6e9a7 into rust-lang:master Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

replace qualified path with use adds to pub use, should not

2 participants