diff options
| author | bors <bors@rust-lang.org> | 2024-01-24 23:13:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-24 23:13:11 +0000 |
| commit | 900a5aa036c6070fdec8acd6d871a4bfc89b2fb4 (patch) | |
| tree | 8cf88dbf80bb13a6ceb0f73633d4be03dd99bfa3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 76a75bf145bbdfb688354d6f9bdebf3fc56af936 (diff) | |
| parent | 4780637cbc4b914218753a23ee54f5785826e403 (diff) | |
| download | rust-900a5aa036c6070fdec8acd6d871a4bfc89b2fb4.tar.gz rust-900a5aa036c6070fdec8acd6d871a4bfc89b2fb4.zip | |
Auto merge of #12180 - y21:conf_lev_distance, r=blyxyas
Suggest existing configuration option if one is found While working on/testing #12179, I made the mistake of using underscores instead of dashes for the field name in the clippy.toml file and ended up being confused for a few minutes until I found out what's wrong. With this change, clippy will suggest an existing field if there's one that's similar. ``` 1 | allow_mixed_uninlined_format_args = true | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: perhaps you meant: `allow-mixed-uninlined-format-args` ``` (in hindsight, the current behavior of printing all the config options makes it obvious in most cases but I still think a suggestion like this would be nice to have) I had to play around with the value a bit. A max distance of 5 seemed a bit too strong since it'd suggest changing `foobar` to `msrv`, which seemed odd, and 4 seemed just good enough to detect a typo of five underscores. changelog: when an invalid field in clippy.toml is found, suggest the closest existing one if one is found
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
