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 1717#![ feature( test) ]
1818#![ feature( type_alias_impl_trait) ]
1919#![ feature( type_ascription) ]
20- #![ feature( iterator_try_reduce) ]
2120#![ recursion_limit = "256" ]
2221#![ warn( rustc:: internal) ]
2322#![ 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(
22572257 // and only if we already found something that looks like a proc macro.
22582258 if is_proc_macro_crate && let Some ( macro_id) = possible_proc_macro_id {
22592259 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)
22672261 } ) ;
22682262 }
22692263
You can’t perform that action at this time.
0 commit comments