Skip to main content

Module solve

Module solve 

Source
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ยง

SolveContext ๐Ÿ”’

Functionsยง

glb ๐Ÿ”’
solve_constraints ๐Ÿ”’