Skip to content

Commit 107ca36

Browse files
committed
Don't check deprecated configs in configs_are_tested test
1 parent 79e5125 commit 107ca36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clippy_config/src/conf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,13 @@ mod tests {
10301030
fn configs_are_tested() {
10311031
let mut names: HashSet<String> = crate::get_configuration_metadata()
10321032
.into_iter()
1033-
.map(|meta| meta.name.replace('_', "-"))
1033+
.filter_map(|meta| {
1034+
if meta.deprecation_reason.is_none() {
1035+
Some(meta.name.replace('_', "-"))
1036+
} else {
1037+
None
1038+
}
1039+
})
10341040
.collect();
10351041

10361042
let toml_files = WalkDir::new("../tests")

0 commit comments

Comments
 (0)