Module sub_
relations
rustc_
trait_
selection
1.85.0
(4d91de4e4 2025-02-17)
Module sub_
relations
Module Items
Structs
In rustc_
trait_
selection::
error_
reporting::
infer
Modules
need_type_info
nice_region_error
note_and_explain
region
sub_relations
suggest
Structs
ObligationCauseAsDiagArg
SameTypeModuloInfer
Enums
FailureCode
TyCategory
Traits
ObligationCauseExt
Functions
escape_literal
rustc_trait_selection
::
error_reporting
::
infer
Module
sub_relations
Copy item path
Settings
Help
Summary
Source
Structs
§
SubId
🔒
SubRelations
When reporting ambiguity errors, we sometimes want to treat all inference vars which are subtypes of each others as if they are equal. For this case we compute the transitive closure of our subtype obligations here.