rustdoc: Simplify predicates with paren notation
This change is aimed at improving cross-crate (inlined) notation of generic closures. The change modifies `simplify::where_predicates` to handle parenthesized notation as well as starting to handle supertrait bounds as well. This was necessary because all output constraints of closures are bound to `FnOnce` but most trait bounds are that of `FnMut`. Close #21801
Showing
src/test/auxiliary/issue-21801.rs
0 → 100644
src/test/rustdoc/issue-21801.rs
0 → 100644
想要评论请 注册 或 登录