File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 17
17
#![ feature( test) ]
18
18
#![ feature( type_alias_impl_trait) ]
19
19
#![ feature( type_ascription) ]
20
- #![ feature( iterator_try_reduce) ]
21
20
#![ recursion_limit = "256" ]
22
21
#![ warn( rustc:: internal) ]
23
22
#![ allow( clippy:: collapsible_if, clippy:: collapsible_else_if) ]
Original file line number Diff line number Diff line change @@ -2257,13 +2257,7 @@ fn ambiguity_error(
2257
2257
// and only if we already found something that looks like a proc macro.
2258
2258
if is_proc_macro_crate && let Some ( macro_id) = possible_proc_macro_id {
2259
2259
kinds. retain ( |res| {
2260
- if let Res :: Def ( DefKind :: Fn , fn_id) = res
2261
- && macro_id == * fn_id
2262
- {
2263
- false
2264
- } else {
2265
- true
2266
- }
2260
+ !matches ! ( res, Res :: Def ( DefKind :: Fn , fn_id) if macro_id == * fn_id)
2267
2261
} ) ;
2268
2262
}
2269
2263
You can’t perform that action at this time.
0 commit comments