about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-04 19:45:20 +0000
committerbors <bors@rust-lang.org>2024-01-04 19:45:20 +0000
commit8507e4c80e7e7af605798b8c784d4edb3fb0f436 (patch)
tree9fa9a7a125cdf040ca9c2794448fe68a68af5559 /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parent52ae2626f9b3e193314affb0f0cb034793942b67 (diff)
parentbf5c0d8334adbaa246f2087f4d031da7e3d8bbb8 (diff)
downloadrust-8507e4c80e7e7af605798b8c784d4edb3fb0f436.tar.gz
rust-8507e4c80e7e7af605798b8c784d4edb3fb0f436.zip
Auto merge of #12090 - GuillaumeGomez:default-unconditional-recursion, r=llogiq
Extend `unconditional_recursion` lint to check for `Default` trait implementation

In case the `Default` trait is implemented manually and is calling a static method (let's call it `a`) and then `a` is using `Self::default()`, it makes an infinite call recursion difficult to see without debugging. This extension checks that there is no such recursion possible.

r? `@llogiq`

changelog: Extend `unconditional_recursion` lint to check for `Default` trait implementation
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions