pub fn compile(config: &Config) -> Result<Compiled, Vec<Diagnostic>>
Collect, check and lower a project to IR.