Extract built-in trait implementations to separate module

This untangles the builtin logic from the Chalk translation.
This commit is contained in:
Florian Diebold 2019-12-03 12:16:39 +01:00
parent 3376c08052
commit 176207f1e8
3 changed files with 219 additions and 127 deletions

View file

@ -15,6 +15,7 @@ use super::{Canonical, GenericPredicate, HirDisplay, ProjectionTy, TraitRef, Ty,
use self::chalk::{from_chalk, ToChalk};
pub(crate) mod chalk;
mod builtin;
#[derive(Debug, Clone)]
pub struct TraitSolver {