diff options
| author | Samuel Moelius <sam@moeli.us> | 2025-03-08 12:13:19 -0500 |
|---|---|---|
| committer | Samuel Moelius <sam@moeli.us> | 2025-03-24 09:06:13 -0400 |
| commit | 315e9aa79fc37e40d37a3ec0a5b46f6b81377306 (patch) | |
| tree | 12b52888fa6599892d8043dab5511f50764614da | |
| parent | 969b5ad65c393ba1e7e8ca2e18d6030867ef42c3 (diff) | |
| download | rust-315e9aa79fc37e40d37a3ec0a5b46f6b81377306.tar.gz rust-315e9aa79fc37e40d37a3ec0a5b46f6b81377306.zip | |
Don't check deprecated configs in `configs_are_tested` test
| -rw-r--r-- | clippy_config/src/conf.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clippy_config/src/conf.rs b/clippy_config/src/conf.rs index 1b9ea464dc3..64b5acd19f2 100644 --- a/clippy_config/src/conf.rs +++ b/clippy_config/src/conf.rs @@ -1090,7 +1090,13 @@ mod tests { fn configs_are_tested() { let mut names: HashSet<String> = crate::get_configuration_metadata() .into_iter() - .map(|meta| meta.name.replace('_', "-")) + .filter_map(|meta| { + if meta.deprecation_reason.is_none() { + Some(meta.name.replace('_', "-")) + } else { + None + } + }) .collect(); let toml_files = WalkDir::new("../tests") |
