Expand description
This module contains the “cleaned” pieces of the AST, and the functions that clean them.
Modules
cfg 🔒
The representation of a
#[doc(cfg(...))]
attribute.inline 🔒
Support for inlining external documentation into the current AST.
simplify 🔒
Simplification of where-clauses and parameter bounds into a prettier and
more canonical form.
types 🔒
utils 🔒
Functions
This is needed to make it more “readable” when documenting functions using
rustc_legacy_const_generics
. More information in
https://github.com/rust-lang/rust/issues/83167.clean_ty 🔒
This can happen for
async fn
, e.g. async fn f<'_>(&'_ self)
.Synthetic type-parameters are inserted after normal ones.
In order for normal parameters to be able to refer to synthetic ones,
scans them first.
Returns
None
if the type could not be normalized