Add a split-use pass.

It transforms "use std::io::{Read, Write}" into
"use std::io::Read; use std::io::Write"

Which later allows to remove just precisely the statements
we do not need, and leave rest be.

The test from the last commit does not pass, but that
is seemingly to do with the test harness setup, since it
works fine locally.
This commit is contained in:
moxian 2025-03-30 18:32:52 -07:00 committed by nora
parent 21a5f1733c
commit 3de6992d63
3 changed files with 142 additions and 1 deletions

View file

@ -2,8 +2,9 @@ mod everybody_loops;
mod field_deleter;
mod item_deleter;
mod privatize;
mod split_use;
pub use self::{
everybody_loops::EverybodyLoops, field_deleter::FieldDeleter, item_deleter::ItemDeleter,
privatize::Privatize,
privatize::Privatize, split_use::SplitUse,
};