diff options
| author | bors <bors@rust-lang.org> | 2022-02-16 22:01:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-16 22:01:49 +0000 |
| commit | b34cd79c0cf2f5425aa56a77cbe95459bef1d98f (patch) | |
| tree | 764a0bb732ad879f301360a9680bbe3ab8068126 /compiler/rustc_codegen_llvm/src | |
| parent | 4931cab709401cc8350598eab9bd51031c89565a (diff) | |
| parent | b162b11abc4c5275b2bf2f2f4679f0b6d72be2cb (diff) | |
| download | rust-b34cd79c0cf2f5425aa56a77cbe95459bef1d98f.tar.gz rust-b34cd79c0cf2f5425aa56a77cbe95459bef1d98f.zip | |
Auto merge of #8188 - jamesmcm:recursive_display_impl, r=camsteffen
new lint: `recursive_format_impl` The to_string_in_display lint is renamed to recursive_format_impl A check is added for the use of self formatted with Display or Debug inside any format string in the same impl The to_string_in_display check is kept as is - like in the format_in_format_args lint This is my first contribution so please check it for better / more idiomatic checks + error messages. Note the format macro paths are shared with the `format_in_format_args` lint - maybe those could be moved to clippy utils too. This relates to issues #2691 and #7830 ------ changelog: Renamed `to_string_in_display` lint to [`recursive_format_impl`] with new check for any use of self as Display or Debug inside the same format trait impl.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
