Module rustc_middle::ty::relate

source ·


  • Whether aliases should be related structurally or not. Used to adjust the behavior of generalization and combine.
  • Extra information about why we ended up with a particular variance. This is only used to add more information to error messages, and has no effect on soundness. While choosing the ‘wrong’ VarianceDiagInfo may lead to confusing notes in error messages, it will never cause a miscompilation or unsoundness.



Type Aliases§