diff options
| author | bors <bors@rust-lang.org> | 2024-01-04 19:45:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-04 19:45:20 +0000 |
| commit | 8507e4c80e7e7af605798b8c784d4edb3fb0f436 (patch) | |
| tree | 9fa9a7a125cdf040ca9c2794448fe68a68af5559 /tests/debuginfo/enum-thinlto.rs | |
| parent | 52ae2626f9b3e193314affb0f0cb034793942b67 (diff) | |
| parent | bf5c0d8334adbaa246f2087f4d031da7e3d8bbb8 (diff) | |
| download | rust-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/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
