mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
move crate_def_map tests to hir_def
This commit is contained in:
parent
0933d914a3
commit
6fba51c5fc
13 changed files with 308 additions and 194 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue