remove unexpected --rustc-args
from ./x miri
This commit is contained in:
parent
bc9ca2902e
commit
0ad798aec7
@ -392,9 +392,6 @@ pub enum Subcommand {
|
|||||||
/// extra arguments to be passed for the test tool being used
|
/// extra arguments to be passed for the test tool being used
|
||||||
/// (e.g. libtest, compiletest or rustdoc)
|
/// (e.g. libtest, compiletest or rustdoc)
|
||||||
test_args: Vec<String>,
|
test_args: Vec<String>,
|
||||||
/// extra options to pass the compiler when running tests
|
|
||||||
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))]
|
|
||||||
rustc_args: Vec<String>,
|
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
/// do not run doc tests
|
/// do not run doc tests
|
||||||
no_doc: bool,
|
no_doc: bool,
|
||||||
@ -501,7 +498,7 @@ pub fn kind(&self) -> Kind {
|
|||||||
|
|
||||||
pub fn rustc_args(&self) -> Vec<&str> {
|
pub fn rustc_args(&self) -> Vec<&str> {
|
||||||
match *self {
|
match *self {
|
||||||
Subcommand::Test { ref rustc_args, .. } | Subcommand::Miri { ref rustc_args, .. } => {
|
Subcommand::Test { ref rustc_args, .. } => {
|
||||||
rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
|
rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
|
||||||
}
|
}
|
||||||
_ => vec![],
|
_ => vec![],
|
||||||
|
Loading…
Reference in New Issue
Block a user