move crate_def_map tests to hir_def

This commit is contained in:
Aleksey Kladov 2019-11-03 23:35:48 +03:00
parent 0933d914a3
commit 6fba51c5fc
13 changed files with 308 additions and 194 deletions

View file

@ -97,6 +97,7 @@ pub enum Edition {
}
impl Edition {
//FIXME: replace with FromStr with proper error handling
pub fn from_string(s: &str) -> Edition {
match s {
"2015" => Edition::Edition2015,