about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-16 22:01:49 +0000
committerbors <bors@rust-lang.org>2022-02-16 22:01:49 +0000
commitb34cd79c0cf2f5425aa56a77cbe95459bef1d98f (patch)
tree764a0bb732ad879f301360a9680bbe3ab8068126 /compiler/rustc_codegen_llvm/src
parent4931cab709401cc8350598eab9bd51031c89565a (diff)
parentb162b11abc4c5275b2bf2f2f4679f0b6d72be2cb (diff)
downloadrust-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