Function cranelift_isle::trie_again::build
source · Expand description
Construct a RuleSet for each term in termenv
that has rules.
Examples found in repository?
src/overlap.rs (line 13)
12 13 14 15 16 17 18 19 20 21 22 23 24 25
pub fn check(tyenv: &TypeEnv, termenv: &TermEnv) -> Result<(), error::Errors> {
let (terms, mut errors) = trie_again::build(termenv);
errors.append(&mut check_overlaps(terms, termenv).report());
if errors.is_empty() {
Ok(())
} else {
Err(error::Errors {
errors,
filenames: tyenv.filenames.clone(),
file_texts: tyenv.file_texts.clone(),
})
}
}