Skip to content

Commit

Permalink
move -A unused further up in the CLI args
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 10, 2020
1 parent d0feade commit ef17d19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,13 @@ actual:\n\
}
}

match allow_unused {
AllowUnused::Yes => {
rustc.args(&["-A", "unused"]);
}
AllowUnused::No => {}
}

if self.props.force_host {
rustc.args(self.split_maybe_args(&self.config.host_rustcflags));
} else {
Expand All @@ -1471,13 +1478,6 @@ actual:\n\
rustc.arg(format!("-Clinker={}", linker));
}

match allow_unused {
AllowUnused::Yes => {
rustc.args(&["-A", "unused"]);
}
AllowUnused::No => {}
}

rustc.args(&self.props.compile_flags);

rustc
Expand Down

0 comments on commit ef17d19

Please sign in to comment.