diff options
| author | binarycat <binarycat@envs.net> | 2025-07-05 10:24:17 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-07-05 10:24:17 -0500 |
| commit | c1ed2ac8a27bce8ccc655bd87102752d9d8015d6 (patch) | |
| tree | 49ed9656afac7417610aac63db5cf0ca5408b613 /src | |
| parent | 971feb618518d5b53dcdc43dcc873b5f7be3f88c (diff) | |
| download | rust-c1ed2ac8a27bce8ccc655bd87102752d9d8015d6.tar.gz rust-c1ed2ac8a27bce8ccc655bd87102752d9d8015d6.zip | |
tidy: add specific error message for trying to use `spellcheck:fix`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/ext_tool_checks.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/tidy/src/ext_tool_checks.rs b/src/tools/tidy/src/ext_tool_checks.rs index f76403711b1..d2da63a9703 100644 --- a/src/tools/tidy/src/ext_tool_checks.rs +++ b/src/tools/tidy/src/ext_tool_checks.rs @@ -65,6 +65,13 @@ fn check_impl( None => vec![], }; + if lint_args.contains(&"spellcheck:fix") { + return Err(Error::Generic( + "`spellcheck:fix` is no longer valid, use `--extra=check=spellcheck --bless`" + .to_string(), + )); + } + let python_all = lint_args.contains(&"py"); let python_lint = lint_args.contains(&"py:lint") || python_all; let python_fmt = lint_args.contains(&"py:fmt") || python_all; |
