File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
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 @@ -2256,15 +2256,7 @@ fn ambiguity_error(
2256
2256
// As an optimization, we only deduplicate if we're in a proc-macro crate,
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
- 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
- }
2267
- } ) ;
2259
+ kinds. retain ( |res| !matches ! ( res, Res :: Def ( DefKind :: Fn , fn_id) if macro_id == * fn_id) ) ;
2268
2260
}
2269
2261
2270
2262
kinds. retain ( |res| descrs. insert ( res. descr ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments