rustc_hir_analysis::check

Module wfcheck

Source

Structs§

  • Collect usages of the param_def_id and Res::SelfTyAlias in the HIR.
  • GATArgsCollector πŸ”’
    TypeVisitor that looks for uses of GATs like <P0 as Trait<P1..Pn>>::GAT<Pn..Pm> and adds the arguments P0..Pm into the two vectors, regions and types (depending on their kind). For each parameter Pi also track the index i.
  • HasErrorDeep πŸ”’
    Look for ErrorGuaranteed deeply within structs’ (unsubstituted) fields.
  • Detects cases where an ADT/LTA is trivially cyclical – we want to detect this so we only mention that its parameters are used cyclically if the ADT/LTA is truly cyclical.
  • WfCheckingCtxt πŸ”’

Enums§

  • The arbitrary_self_types_pointers feature implies arbitrary_self_types.
  • Error cases which may be returned from receiver_is_valid. These error cases are generated in this function as they may be unearthed as we explore the autoderef chain, but they’re converted to diagnostics in the caller.
  • UnsizedHandling πŸ”’

Functions§