Linshu Yang

Results 20 issues of Linshu Yang

Closes rust-lang/rust-clippy#15047 changelog: [`filter_map_bool_then`] fix wrongly showed macro definitions in suggestions

S-waiting-on-review

### Summary `filter_map_bool_then` wrongly showed the macro definition instead of its call site in suggestions ### Reproducer I tried this code: ```rust tokenize_with_text(&snippet) .filter_map(|(t, s, inner)| { matches!(t, TokenKind::Ident if...

C-bug

Closes rust-lang/rust-clippy#16015 changelog: [`match_like_matches_macro`] fix wrongly unmangled macros

S-waiting-on-review

Closes rust-lang/rust-clippy#16164 changelog: [`use_self`] fix FP on type in const generics

S-waiting-on-review

Closes rust-lang/rust-clippy#15924 changelog: [`if_not_else`] fix wrongly unmangled macros

S-waiting-on-review

Closes rust-lang/rust-clippy#15713 Closes rust-lang/rust-clippy#15714 Closes rust-lang/rust-clippy#15752 changelog: [`map_unwrap_or`] add cover for `Result::unwrap_or`

S-waiting-on-review

Closes rust-lang/rust-clippy#15781 changelog: [`map_entry`] fix wrong suggestions for insert with cfg-ed out code

S-waiting-on-review

Closes rust-lang/rust-clippy#16157 changelog: [`empty_enum_variants_with_brackets`] fix missing to remove brackets in patterns

S-waiting-on-review

Closes rust-lang/rust-clippy#15990 changelog: [`set-contains-or-insert`] fix FP when set is mutated before `insert`

S-waiting-on-review

Closes rust-lang/rust-clippy#14989 changelog: [`redundant_pattern_matching`] fix missing `)` in suggestion span

S-waiting-on-review