diff options
22 files changed, 39 insertions, 39 deletions
diff --git a/Cargo.lock b/Cargo.lock index a63cd58f2..18c979b39 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -113,6 +113,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
113 | checksum = "f9a06fb2e53271d7c279ec1efea6ab691c35a2ae67ec0d91d7acec0caf13b518" | 113 | checksum = "f9a06fb2e53271d7c279ec1efea6ab691c35a2ae67ec0d91d7acec0caf13b518" |
114 | 114 | ||
115 | [[package]] | 115 | [[package]] |
116 | name = "cfg" | ||
117 | version = "0.0.0" | ||
118 | dependencies = [ | ||
119 | "mbe", | ||
120 | "rustc-hash", | ||
121 | "syntax", | ||
122 | "tt", | ||
123 | ] | ||
124 | |||
125 | [[package]] | ||
116 | name = "cfg-if" | 126 | name = "cfg-if" |
117 | version = "0.1.10" | 127 | version = "0.1.10" |
118 | source = "registry+https://github.com/rust-lang/crates.io-index" | 128 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -956,21 +966,11 @@ dependencies = [ | |||
956 | ] | 966 | ] |
957 | 967 | ||
958 | [[package]] | 968 | [[package]] |
959 | name = "ra_cfg" | ||
960 | version = "0.1.0" | ||
961 | dependencies = [ | ||
962 | "mbe", | ||
963 | "rustc-hash", | ||
964 | "syntax", | ||
965 | "tt", | ||
966 | ] | ||
967 | |||
968 | [[package]] | ||
969 | name = "ra_db" | 969 | name = "ra_db" |
970 | version = "0.1.0" | 970 | version = "0.1.0" |
971 | dependencies = [ | 971 | dependencies = [ |
972 | "cfg", | ||
972 | "profile", | 973 | "profile", |
973 | "ra_cfg", | ||
974 | "rustc-hash", | 974 | "rustc-hash", |
975 | "salsa", | 975 | "salsa", |
976 | "stdx", | 976 | "stdx", |
@@ -1012,6 +1012,7 @@ version = "0.1.0" | |||
1012 | dependencies = [ | 1012 | dependencies = [ |
1013 | "anymap", | 1013 | "anymap", |
1014 | "arena", | 1014 | "arena", |
1015 | "cfg", | ||
1015 | "drop_bomb", | 1016 | "drop_bomb", |
1016 | "either", | 1017 | "either", |
1017 | "expect", | 1018 | "expect", |
@@ -1022,7 +1023,6 @@ dependencies = [ | |||
1022 | "mbe", | 1023 | "mbe", |
1023 | "once_cell", | 1024 | "once_cell", |
1024 | "profile", | 1025 | "profile", |
1025 | "ra_cfg", | ||
1026 | "ra_db", | 1026 | "ra_db", |
1027 | "ra_hir_expand", | 1027 | "ra_hir_expand", |
1028 | "rustc-hash", | 1028 | "rustc-hash", |
@@ -1082,6 +1082,7 @@ dependencies = [ | |||
1082 | name = "ra_ide" | 1082 | name = "ra_ide" |
1083 | version = "0.1.0" | 1083 | version = "0.1.0" |
1084 | dependencies = [ | 1084 | dependencies = [ |
1085 | "cfg", | ||
1085 | "either", | 1086 | "either", |
1086 | "expect", | 1087 | "expect", |
1087 | "indexmap", | 1088 | "indexmap", |
@@ -1090,7 +1091,6 @@ dependencies = [ | |||
1090 | "oorandom", | 1091 | "oorandom", |
1091 | "profile", | 1092 | "profile", |
1092 | "ra_assists", | 1093 | "ra_assists", |
1093 | "ra_cfg", | ||
1094 | "ra_db", | 1094 | "ra_db", |
1095 | "ra_fmt", | 1095 | "ra_fmt", |
1096 | "ra_hir", | 1096 | "ra_hir", |
@@ -1141,9 +1141,9 @@ dependencies = [ | |||
1141 | "anyhow", | 1141 | "anyhow", |
1142 | "arena", | 1142 | "arena", |
1143 | "cargo_metadata", | 1143 | "cargo_metadata", |
1144 | "cfg", | ||
1144 | "log", | 1145 | "log", |
1145 | "paths", | 1146 | "paths", |
1146 | "ra_cfg", | ||
1147 | "ra_db", | 1147 | "ra_db", |
1148 | "ra_proc_macro", | 1148 | "ra_proc_macro", |
1149 | "rustc-hash", | 1149 | "rustc-hash", |
@@ -1240,6 +1240,7 @@ name = "rust-analyzer" | |||
1240 | version = "0.1.0" | 1240 | version = "0.1.0" |
1241 | dependencies = [ | 1241 | dependencies = [ |
1242 | "anyhow", | 1242 | "anyhow", |
1243 | "cfg", | ||
1243 | "crossbeam-channel", | 1244 | "crossbeam-channel", |
1244 | "env_logger", | 1245 | "env_logger", |
1245 | "expect", | 1246 | "expect", |
@@ -1256,7 +1257,6 @@ dependencies = [ | |||
1256 | "pico-args", | 1257 | "pico-args", |
1257 | "proc_macro_srv", | 1258 | "proc_macro_srv", |
1258 | "profile", | 1259 | "profile", |
1259 | "ra_cfg", | ||
1260 | "ra_db", | 1260 | "ra_db", |
1261 | "ra_hir", | 1261 | "ra_hir", |
1262 | "ra_hir_def", | 1262 | "ra_hir_def", |
diff --git a/crates/ra_cfg/Cargo.toml b/crates/cfg/Cargo.toml index 661e53904..d2ea551d1 100644 --- a/crates/ra_cfg/Cargo.toml +++ b/crates/cfg/Cargo.toml | |||
@@ -1,9 +1,9 @@ | |||
1 | [package] | 1 | [package] |
2 | edition = "2018" | 2 | name = "cfg" |
3 | name = "ra_cfg" | 3 | version = "0.0.0" |
4 | version = "0.1.0" | ||
5 | authors = ["rust-analyzer developers"] | ||
6 | license = "MIT OR Apache-2.0" | 4 | license = "MIT OR Apache-2.0" |
5 | authors = ["rust-analyzer developers"] | ||
6 | edition = "2018" | ||
7 | 7 | ||
8 | [lib] | 8 | [lib] |
9 | doctest = false | 9 | doctest = false |
diff --git a/crates/ra_cfg/src/cfg_expr.rs b/crates/cfg/src/cfg_expr.rs index 336fe25bc..336fe25bc 100644 --- a/crates/ra_cfg/src/cfg_expr.rs +++ b/crates/cfg/src/cfg_expr.rs | |||
diff --git a/crates/ra_cfg/src/lib.rs b/crates/cfg/src/lib.rs index 6fb37bf9f..a9d50e698 100644 --- a/crates/ra_cfg/src/lib.rs +++ b/crates/cfg/src/lib.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | //! ra_cfg defines conditional compiling options, `cfg` attibute parser and evaluator | 1 | //! cfg defines conditional compiling options, `cfg` attibute parser and evaluator |
2 | 2 | ||
3 | mod cfg_expr; | 3 | mod cfg_expr; |
4 | 4 | ||
diff --git a/crates/ra_db/Cargo.toml b/crates/ra_db/Cargo.toml index 156ea1ee4..ad432f096 100644 --- a/crates/ra_db/Cargo.toml +++ b/crates/ra_db/Cargo.toml | |||
@@ -13,7 +13,7 @@ salsa = "0.15.2" | |||
13 | rustc-hash = "1.1.0" | 13 | rustc-hash = "1.1.0" |
14 | 14 | ||
15 | syntax = { path = "../syntax" } | 15 | syntax = { path = "../syntax" } |
16 | ra_cfg = { path = "../ra_cfg" } | 16 | cfg = { path = "../cfg" } |
17 | profile = { path = "../profile" } | 17 | profile = { path = "../profile" } |
18 | tt = { path = "../tt" } | 18 | tt = { path = "../tt" } |
19 | test_utils = { path = "../test_utils" } | 19 | test_utils = { path = "../test_utils" } |
diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs index 2aafb9965..5ff8ead0e 100644 --- a/crates/ra_db/src/fixture.rs +++ b/crates/ra_db/src/fixture.rs | |||
@@ -59,7 +59,7 @@ | |||
59 | //! ``` | 59 | //! ``` |
60 | use std::{str::FromStr, sync::Arc}; | 60 | use std::{str::FromStr, sync::Arc}; |
61 | 61 | ||
62 | use ra_cfg::CfgOptions; | 62 | use cfg::CfgOptions; |
63 | use rustc_hash::FxHashMap; | 63 | use rustc_hash::FxHashMap; |
64 | use test_utils::{extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER}; | 64 | use test_utils::{extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER}; |
65 | use vfs::{file_set::FileSet, VfsPath}; | 65 | use vfs::{file_set::FileSet, VfsPath}; |
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index 12a863499..f3d65cdf0 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | use std::{fmt, iter::FromIterator, ops, str::FromStr, sync::Arc}; | 9 | use std::{fmt, iter::FromIterator, ops, str::FromStr, sync::Arc}; |
10 | 10 | ||
11 | use ra_cfg::CfgOptions; | 11 | use cfg::CfgOptions; |
12 | use rustc_hash::{FxHashMap, FxHashSet}; | 12 | use rustc_hash::{FxHashMap, FxHashSet}; |
13 | use syntax::SmolStr; | 13 | use syntax::SmolStr; |
14 | use tt::TokenExpander; | 14 | use tt::TokenExpander; |
diff --git a/crates/ra_hir_def/Cargo.toml b/crates/ra_hir_def/Cargo.toml index ba7916c30..e7d3c4d5b 100644 --- a/crates/ra_hir_def/Cargo.toml +++ b/crates/ra_hir_def/Cargo.toml | |||
@@ -29,7 +29,7 @@ profile = { path = "../profile" } | |||
29 | hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" } | 29 | hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" } |
30 | test_utils = { path = "../test_utils" } | 30 | test_utils = { path = "../test_utils" } |
31 | mbe = { path = "../mbe" } | 31 | mbe = { path = "../mbe" } |
32 | ra_cfg = { path = "../ra_cfg" } | 32 | cfg = { path = "../cfg" } |
33 | tt = { path = "../tt" } | 33 | tt = { path = "../tt" } |
34 | 34 | ||
35 | [dev-dependencies] | 35 | [dev-dependencies] |
diff --git a/crates/ra_hir_def/src/adt.rs b/crates/ra_hir_def/src/adt.rs index c83219d77..d69ff2fc7 100644 --- a/crates/ra_hir_def/src/adt.rs +++ b/crates/ra_hir_def/src/adt.rs | |||
@@ -23,7 +23,7 @@ use crate::{ | |||
23 | EnumId, HasModule, LocalEnumVariantId, LocalFieldId, Lookup, ModuleId, StructId, UnionId, | 23 | EnumId, HasModule, LocalEnumVariantId, LocalFieldId, Lookup, ModuleId, StructId, UnionId, |
24 | VariantId, | 24 | VariantId, |
25 | }; | 25 | }; |
26 | use ra_cfg::CfgOptions; | 26 | use cfg::CfgOptions; |
27 | 27 | ||
28 | /// Note that we use `StructData` for unions as well! | 28 | /// Note that we use `StructData` for unions as well! |
29 | #[derive(Debug, Clone, PartialEq, Eq)] | 29 | #[derive(Debug, Clone, PartialEq, Eq)] |
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/ra_hir_def/src/attr.rs index 36dc8b816..1e5b06ca0 100644 --- a/crates/ra_hir_def/src/attr.rs +++ b/crates/ra_hir_def/src/attr.rs | |||
@@ -5,7 +5,7 @@ use std::{ops, sync::Arc}; | |||
5 | use either::Either; | 5 | use either::Either; |
6 | use hir_expand::{hygiene::Hygiene, AstId, InFile}; | 6 | use hir_expand::{hygiene::Hygiene, AstId, InFile}; |
7 | use mbe::ast_to_token_tree; | 7 | use mbe::ast_to_token_tree; |
8 | use ra_cfg::{CfgExpr, CfgOptions}; | 8 | use cfg::{CfgExpr, CfgOptions}; |
9 | use syntax::{ | 9 | use syntax::{ |
10 | ast::{self, AstNode, AttrsOwner}, | 10 | ast::{self, AstNode, AttrsOwner}, |
11 | SmolStr, | 11 | SmolStr, |
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index 7c33966a7..3568513d1 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -9,7 +9,7 @@ use arena::{map::ArenaMap, Arena}; | |||
9 | use drop_bomb::DropBomb; | 9 | use drop_bomb::DropBomb; |
10 | use either::Either; | 10 | use either::Either; |
11 | use hir_expand::{ast_id_map::AstIdMap, hygiene::Hygiene, AstId, HirFileId, InFile, MacroDefId}; | 11 | use hir_expand::{ast_id_map::AstIdMap, hygiene::Hygiene, AstId, HirFileId, InFile, MacroDefId}; |
12 | use ra_cfg::CfgOptions; | 12 | use cfg::CfgOptions; |
13 | use ra_db::CrateId; | 13 | use ra_db::CrateId; |
14 | use rustc_hash::FxHashMap; | 14 | use rustc_hash::FxHashMap; |
15 | use syntax::{ast, AstNode, AstPtr}; | 15 | use syntax::{ast, AstNode, AstPtr}; |
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index f7270ec91..fa2dadfc5 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -11,7 +11,7 @@ use hir_expand::{ | |||
11 | proc_macro::ProcMacroExpander, | 11 | proc_macro::ProcMacroExpander, |
12 | HirFileId, MacroCallId, MacroDefId, MacroDefKind, | 12 | HirFileId, MacroCallId, MacroDefId, MacroDefKind, |
13 | }; | 13 | }; |
14 | use ra_cfg::CfgOptions; | 14 | use cfg::CfgOptions; |
15 | use ra_db::{CrateId, FileId, ProcMacroId}; | 15 | use ra_db::{CrateId, FileId, ProcMacroId}; |
16 | use rustc_hash::FxHashMap; | 16 | use rustc_hash::FxHashMap; |
17 | use syntax::ast; | 17 | use syntax::ast; |
diff --git a/crates/ra_ide/Cargo.toml b/crates/ra_ide/Cargo.toml index 8e0fa5917..c60e55545 100644 --- a/crates/ra_ide/Cargo.toml +++ b/crates/ra_ide/Cargo.toml | |||
@@ -25,7 +25,7 @@ syntax = { path = "../syntax" } | |||
25 | text_edit = { path = "../text_edit" } | 25 | text_edit = { path = "../text_edit" } |
26 | ra_db = { path = "../ra_db" } | 26 | ra_db = { path = "../ra_db" } |
27 | ra_ide_db = { path = "../ra_ide_db" } | 27 | ra_ide_db = { path = "../ra_ide_db" } |
28 | ra_cfg = { path = "../ra_cfg" } | 28 | cfg = { path = "../cfg" } |
29 | ra_fmt = { path = "../ra_fmt" } | 29 | ra_fmt = { path = "../ra_fmt" } |
30 | profile = { path = "../profile" } | 30 | profile = { path = "../profile" } |
31 | test_utils = { path = "../test_utils" } | 31 | test_utils = { path = "../test_utils" } |
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 20967ba99..1fdf17800 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -47,7 +47,7 @@ mod typing; | |||
47 | 47 | ||
48 | use std::sync::Arc; | 48 | use std::sync::Arc; |
49 | 49 | ||
50 | use ra_cfg::CfgOptions; | 50 | use cfg::CfgOptions; |
51 | use ra_db::{ | 51 | use ra_db::{ |
52 | salsa::{self, ParallelDatabase}, | 52 | salsa::{self, ParallelDatabase}, |
53 | CheckCanceled, Env, FileLoader, FileSet, SourceDatabase, VfsPath, | 53 | CheckCanceled, Env, FileLoader, FileSet, SourceDatabase, VfsPath, |
diff --git a/crates/ra_ide/src/mock_analysis.rs b/crates/ra_ide/src/mock_analysis.rs index c7e0f4b58..a4691f028 100644 --- a/crates/ra_ide/src/mock_analysis.rs +++ b/crates/ra_ide/src/mock_analysis.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | use std::sync::Arc; | 2 | use std::sync::Arc; |
3 | 3 | ||
4 | use ra_cfg::CfgOptions; | 4 | use cfg::CfgOptions; |
5 | use ra_db::{CrateName, FileSet, SourceRoot, VfsPath}; | 5 | use ra_db::{CrateName, FileSet, SourceRoot, VfsPath}; |
6 | use test_utils::{ | 6 | use test_utils::{ |
7 | extract_annotations, extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER, | 7 | extract_annotations, extract_range_or_offset, Fixture, RangeOrOffset, CURSOR_MARKER, |
diff --git a/crates/ra_ide/src/parent_module.rs b/crates/ra_ide/src/parent_module.rs index 69af0c86a..b78388e6b 100644 --- a/crates/ra_ide/src/parent_module.rs +++ b/crates/ra_ide/src/parent_module.rs | |||
@@ -63,7 +63,7 @@ pub(crate) fn crate_for(db: &RootDatabase, file_id: FileId) -> Vec<CrateId> { | |||
63 | 63 | ||
64 | #[cfg(test)] | 64 | #[cfg(test)] |
65 | mod tests { | 65 | mod tests { |
66 | use ra_cfg::CfgOptions; | 66 | use cfg::CfgOptions; |
67 | use ra_db::Env; | 67 | use ra_db::Env; |
68 | use test_utils::mark; | 68 | use test_utils::mark; |
69 | 69 | ||
diff --git a/crates/ra_ide/src/runnables.rs b/crates/ra_ide/src/runnables.rs index 54cb3b309..7d8a210b7 100644 --- a/crates/ra_ide/src/runnables.rs +++ b/crates/ra_ide/src/runnables.rs | |||
@@ -2,7 +2,7 @@ use std::fmt; | |||
2 | 2 | ||
3 | use hir::{AsAssocItem, Attrs, HirFileId, InFile, Semantics}; | 3 | use hir::{AsAssocItem, Attrs, HirFileId, InFile, Semantics}; |
4 | use itertools::Itertools; | 4 | use itertools::Itertools; |
5 | use ra_cfg::CfgExpr; | 5 | use cfg::CfgExpr; |
6 | use ra_ide_db::RootDatabase; | 6 | use ra_ide_db::RootDatabase; |
7 | use syntax::{ | 7 | use syntax::{ |
8 | ast::{self, AstNode, AttrsOwner, DocCommentsOwner, ModuleItemOwner, NameOwner}, | 8 | ast::{self, AstNode, AttrsOwner, DocCommentsOwner, ModuleItemOwner, NameOwner}, |
diff --git a/crates/ra_project_model/Cargo.toml b/crates/ra_project_model/Cargo.toml index 171fe8626..52f2d57b3 100644 --- a/crates/ra_project_model/Cargo.toml +++ b/crates/ra_project_model/Cargo.toml | |||
@@ -15,7 +15,7 @@ rustc-hash = "1.1.0" | |||
15 | cargo_metadata = "0.11.1" | 15 | cargo_metadata = "0.11.1" |
16 | 16 | ||
17 | arena = { path = "../arena" } | 17 | arena = { path = "../arena" } |
18 | ra_cfg = { path = "../ra_cfg" } | 18 | cfg = { path = "../cfg" } |
19 | ra_db = { path = "../ra_db" } | 19 | ra_db = { path = "../ra_db" } |
20 | toolchain = { path = "../toolchain" } | 20 | toolchain = { path = "../toolchain" } |
21 | ra_proc_macro = { path = "../ra_proc_macro" } | 21 | ra_proc_macro = { path = "../ra_proc_macro" } |
diff --git a/crates/ra_project_model/src/cfg_flag.rs b/crates/ra_project_model/src/cfg_flag.rs index bd50056c6..e92962cf6 100644 --- a/crates/ra_project_model/src/cfg_flag.rs +++ b/crates/ra_project_model/src/cfg_flag.rs | |||
@@ -3,7 +3,7 @@ | |||
3 | //! rustc main.rs --cfg foo --cfg 'feature="bar"' | 3 | //! rustc main.rs --cfg foo --cfg 'feature="bar"' |
4 | use std::str::FromStr; | 4 | use std::str::FromStr; |
5 | 5 | ||
6 | use ra_cfg::CfgOptions; | 6 | use cfg::CfgOptions; |
7 | use stdx::split_once; | 7 | use stdx::split_once; |
8 | 8 | ||
9 | #[derive(Clone, Eq, PartialEq, Debug)] | 9 | #[derive(Clone, Eq, PartialEq, Debug)] |
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index 46f44910c..47e7d2420 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -13,7 +13,7 @@ use std::{ | |||
13 | 13 | ||
14 | use anyhow::{bail, Context, Result}; | 14 | use anyhow::{bail, Context, Result}; |
15 | use paths::{AbsPath, AbsPathBuf}; | 15 | use paths::{AbsPath, AbsPathBuf}; |
16 | use ra_cfg::CfgOptions; | 16 | use cfg::CfgOptions; |
17 | use ra_db::{CrateGraph, CrateId, CrateName, Edition, Env, FileId}; | 17 | use ra_db::{CrateGraph, CrateId, CrateName, Edition, Env, FileId}; |
18 | use rustc_hash::{FxHashMap, FxHashSet}; | 18 | use rustc_hash::{FxHashMap, FxHashSet}; |
19 | 19 | ||
diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 156f8d538..440b1cd13 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml | |||
@@ -42,7 +42,7 @@ syntax = { path = "../syntax" } | |||
42 | text_edit = { path = "../text_edit" } | 42 | text_edit = { path = "../text_edit" } |
43 | vfs = { path = "../vfs" } | 43 | vfs = { path = "../vfs" } |
44 | vfs-notify = { path = "../vfs-notify" } | 44 | vfs-notify = { path = "../vfs-notify" } |
45 | ra_cfg = { path = "../ra_cfg" } | 45 | cfg = { path = "../cfg" } |
46 | toolchain = { path = "../toolchain" } | 46 | toolchain = { path = "../toolchain" } |
47 | 47 | ||
48 | # This should only be used in CLI | 48 | # This should only be used in CLI |
diff --git a/crates/rust-analyzer/src/cargo_target_spec.rs b/crates/rust-analyzer/src/cargo_target_spec.rs index 7929368c0..87ddd25bf 100644 --- a/crates/rust-analyzer/src/cargo_target_spec.rs +++ b/crates/rust-analyzer/src/cargo_target_spec.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | //! See `CargoTargetSpec` | 1 | //! See `CargoTargetSpec` |
2 | 2 | ||
3 | use ra_cfg::CfgExpr; | 3 | use cfg::CfgExpr; |
4 | use ra_ide::{FileId, RunnableKind, TestId}; | 4 | use ra_ide::{FileId, RunnableKind, TestId}; |
5 | use ra_project_model::{self, TargetKind}; | 5 | use ra_project_model::{self, TargetKind}; |
6 | use vfs::AbsPathBuf; | 6 | use vfs::AbsPathBuf; |
@@ -178,7 +178,7 @@ mod tests { | |||
178 | use super::*; | 178 | use super::*; |
179 | 179 | ||
180 | use mbe::ast_to_token_tree; | 180 | use mbe::ast_to_token_tree; |
181 | use ra_cfg::CfgExpr; | 181 | use cfg::CfgExpr; |
182 | use syntax::{ | 182 | use syntax::{ |
183 | ast::{self, AstNode}, | 183 | ast::{self, AstNode}, |
184 | SmolStr, | 184 | SmolStr, |