pub fn check_package(package: &Package) -> Result<Vec<Diagnostic>, Error>
Checks the sources of one package: the directories of its library and binaries.