-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle
{self}
when recursively removing node from UseTree
This commits adds logic to `UseTree::remove_recursive` to handle converting `use x::y::{self};` to `use x::y;` when recurisevly removing nodes. For example `use x::y::{self, Z};` can become `use x::y` if `Z` is unused.
- Loading branch information
1 parent
85c120b
commit c298bd6
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -800,7 +800,7 @@ mod z { | |
} | ||
mod z { | ||
use super::inner::{self}; | ||
use super::inner; | ||
fn f() { | ||
let y = inner::Y(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters