Skip to main content

Module region_matching

Module region_matching 

Source

Re-exportsยง

use std::collections::hash_map; ๐Ÿ”’
use std::iter; ๐Ÿ”’
use flux_common::bug; ๐Ÿ”’
use flux_common::bug; ๐Ÿ”’
use flux_rustc_bridge::ty; ๐Ÿ”’
use rustc_data_structures::unord::UnordMap; ๐Ÿ”’
use super::fold::TypeFoldable; ๐Ÿ”’
use crate::rty; ๐Ÿ”’
use crate::rty::fold::TypeFolder; ๐Ÿ”’

Structsยง

RegionSubst ๐Ÿ”’

Functionsยง

replace_regions_with_unique_vars ๐Ÿ”’
Replace all non-bound regions with a rty::ReVar assigning each a unique rty::RegionVid. This is used to have a unique identifier for each position such that we can infer a region substitution.
rty_match_regions
ty_match_regions
See flux_refineck::type_env::TypeEnv::assign