Struct-field deletion mutants currently bypass the normal mutant-name filters.
Both CLI filters and their config equivalents are affected.
For example:
#[derive(Default)]
struct Settings {
enabled: bool,
count: usize,
}
fn settings() -> Settings {
Settings {
enabled: true,
count: 1 + 2,
..Default::default()
}
}
Running:
cargo mutants --Zmutate-file repro.rs --re "delete field enabled"
lists deletion mutants for both enabled and count. Conversely,
--exclude-re "delete field enabled" still lists the enabled mutant.
Struct-field deletion mutants should obey --re and --exclude-re like
the other mutant genres.
Struct-field deletion mutants currently bypass the normal mutant-name filters.
Both CLI filters and their config equivalents are affected.
For example:
Running:
lists deletion mutants for both
enabledandcount. Conversely,--exclude-re "delete field enabled"still lists theenabledmutant.Struct-field deletion mutants should obey
--reand--exclude-relikethe other mutant genres.