This commit is contained in:
nora 2022-12-18 11:27:23 +01:00
parent a36bf95c3e
commit 1cb5114557
7 changed files with 226 additions and 69 deletions

View file

@ -21,7 +21,11 @@ enum Cargo {
#[derive(clap::Args, Debug)]
pub struct Options {
#[arg(short, long)]
verify_error_path: Option<PathBuf>,
script_path: Option<PathBuf>,
#[arg(long)]
cargo_args: Option<String>,
#[arg(long)]
rustc: bool,
#[arg(long)]
@ -38,8 +42,6 @@ pub fn minimize() -> Result<()> {
let mut minimizer = Minimizer::new_glob_dir(&options.path, build);
minimizer.delete_dead_code().context("deleting dead code")?;
minimizer.run_passes([
Box::new(Privatize::default()) as Box<dyn Processor>,
Box::new(EverybodyLoops::default()) as Box<dyn Processor>,