diff options
| author | bors <bors@rust-lang.org> | 2024-03-09 09:56:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-09 09:56:37 +0000 |
| commit | 453242cbdea7c0e9288197393da706f45ba95b0a (patch) | |
| tree | d3878da56d30a37e1b47b1dccd27b793b36e9d1e /compiler/rustc_codegen_gcc | |
| parent | 0b4b684b46b5b962eca2d275ad609b7ade946505 (diff) | |
| parent | 898ed8825d610d4f441ccb7c84c770261ce45ded (diff) | |
| download | rust-453242cbdea7c0e9288197393da706f45ba95b0a.tar.gz rust-453242cbdea7c0e9288197393da706f45ba95b0a.zip | |
Auto merge of #12310 - samueltardieu:issue-12307, r=xFrednet
New lint `const_is_empty` This lint detects calls to `.is_empty()` on an entity initialized from a string literal and flag them as suspicious. To avoid triggering on macros called from generated code, it checks that the `.is_empty()` receiver, the call itself and the initialization come from the same context. Fixes #12307 changelog: [`const_is_empty`]: new lint
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
