Expand description
Code to solve constraints and write out the results. Constraint solving
The final phase iterates over the constraints, refining the variance
for each inferred until a fixed point is reached. This will be the
optimal solution to the constraints. The final variance for each
inferred is then written into the variance_map in the tcx.
Re-exportsยง
use rustc_data_structures::fx::FxHashSet;๐use rustc_hir::def_id::DefIdMap;๐use rustc_middle::ty;๐use tracing::debug;๐use super::constraints::*;๐use super::terms::VarianceTerm::*;๐use super::terms::*;๐
Structsยง
- Solve
Context ๐
Functionsยง
- glb ๐
- solve_
constraints ๐