1const IGNORED_LINTS: &[&str] = &["dead_code"]; 2 3pub fn toml() -> toml::Value { 4 let mut rustflags = vec!["--cfg", "trybuild", "--verbose"]; 5 6 for &lint in IGNORED_LINTS { 7 rustflags.push("-A"); 8 rustflags.push(lint); 9 } 10 11 toml::Value::try_from(rustflags).unwrap() 12}