Skip to content

Commit 315e9aa

Browse files
committed
Don't check deprecated configs in configs_are_tested test
1 parent 969b5ad commit 315e9aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clippy_config/src/conf.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,13 @@ mod tests {
10901090
fn configs_are_tested() {
10911091
let mut names: HashSet<String> = crate::get_configuration_metadata()
10921092
.into_iter()
1093-
.map(|meta| meta.name.replace('_', "-"))
1093+
.filter_map(|meta| {
1094+
if meta.deprecation_reason.is_none() {
1095+
Some(meta.name.replace('_', "-"))
1096+
} else {
1097+
None
1098+
}
1099+
})
10941100
.collect();
10951101

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

0 commit comments

Comments
 (0)