aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock40
-rw-r--r--crates/hir_expand/Cargo.toml (renamed from crates/ra_hir_expand/Cargo.toml)8
-rw-r--r--crates/hir_expand/src/ast_id_map.rs (renamed from crates/ra_hir_expand/src/ast_id_map.rs)0
-rw-r--r--crates/hir_expand/src/builtin_derive.rs (renamed from crates/ra_hir_expand/src/builtin_derive.rs)0
-rw-r--r--crates/hir_expand/src/builtin_macro.rs (renamed from crates/ra_hir_expand/src/builtin_macro.rs)0
-rw-r--r--crates/hir_expand/src/db.rs (renamed from crates/ra_hir_expand/src/db.rs)0
-rw-r--r--crates/hir_expand/src/diagnostics.rs (renamed from crates/ra_hir_expand/src/diagnostics.rs)0
-rw-r--r--crates/hir_expand/src/eager.rs (renamed from crates/ra_hir_expand/src/eager.rs)0
-rw-r--r--crates/hir_expand/src/hygiene.rs (renamed from crates/ra_hir_expand/src/hygiene.rs)0
-rw-r--r--crates/hir_expand/src/lib.rs (renamed from crates/ra_hir_expand/src/lib.rs)2
-rw-r--r--crates/hir_expand/src/name.rs (renamed from crates/ra_hir_expand/src/name.rs)0
-rw-r--r--crates/hir_expand/src/proc_macro.rs (renamed from crates/ra_hir_expand/src/proc_macro.rs)0
-rw-r--r--crates/hir_expand/src/quote.rs (renamed from crates/ra_hir_expand/src/quote.rs)0
-rw-r--r--crates/hir_expand/src/test_db.rs (renamed from crates/ra_hir_expand/src/test_db.rs)0
-rw-r--r--crates/ra_hir/Cargo.toml2
-rw-r--r--crates/ra_hir/src/code_model.rs2
-rw-r--r--crates/ra_hir_def/Cargo.toml3
-rw-r--r--crates/ra_hir_ty/Cargo.toml2
-rw-r--r--xtask/tests/tidy.rs2
19 files changed, 30 insertions, 31 deletions
diff --git a/Cargo.lock b/Cargo.lock
index a99dd6e04..768c3293d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -464,6 +464,23 @@ dependencies = [
464] 464]
465 465
466[[package]] 466[[package]]
467name = "hir_expand"
468version = "0.0.0"
469dependencies = [
470 "arena",
471 "base_db",
472 "either",
473 "log",
474 "mbe",
475 "parser",
476 "profile",
477 "rustc-hash",
478 "syntax",
479 "test_utils",
480 "tt",
481]
482
483[[package]]
467name = "home" 484name = "home"
468version = "0.5.3" 485version = "0.5.3"
469source = "registry+https://github.com/rust-lang/crates.io-index" 486source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1017,11 +1034,11 @@ dependencies = [
1017 "arrayvec", 1034 "arrayvec",
1018 "base_db", 1035 "base_db",
1019 "either", 1036 "either",
1037 "hir_expand",
1020 "itertools", 1038 "itertools",
1021 "log", 1039 "log",
1022 "profile", 1040 "profile",
1023 "ra_hir_def", 1041 "ra_hir_def",
1024 "ra_hir_expand",
1025 "ra_hir_ty", 1042 "ra_hir_ty",
1026 "rustc-hash", 1043 "rustc-hash",
1027 "stdx", 1044 "stdx",
@@ -1040,13 +1057,13 @@ dependencies = [
1040 "either", 1057 "either",
1041 "expect", 1058 "expect",
1042 "fst", 1059 "fst",
1060 "hir_expand",
1043 "indexmap", 1061 "indexmap",
1044 "itertools", 1062 "itertools",
1045 "log", 1063 "log",
1046 "mbe", 1064 "mbe",
1047 "once_cell", 1065 "once_cell",
1048 "profile", 1066 "profile",
1049 "ra_hir_expand",
1050 "rustc-hash", 1067 "rustc-hash",
1051 "smallvec", 1068 "smallvec",
1052 "stdx", 1069 "stdx",
@@ -1056,23 +1073,6 @@ dependencies = [
1056] 1073]
1057 1074
1058[[package]] 1075[[package]]
1059name = "ra_hir_expand"
1060version = "0.1.0"
1061dependencies = [
1062 "arena",
1063 "base_db",
1064 "either",
1065 "log",
1066 "mbe",
1067 "parser",
1068 "profile",
1069 "rustc-hash",
1070 "syntax",
1071 "test_utils",
1072 "tt",
1073]
1074
1075[[package]]
1076name = "ra_hir_ty" 1076name = "ra_hir_ty"
1077version = "0.1.0" 1077version = "0.1.0"
1078dependencies = [ 1078dependencies = [
@@ -1084,11 +1084,11 @@ dependencies = [
1084 "chalk-solve", 1084 "chalk-solve",
1085 "ena", 1085 "ena",
1086 "expect", 1086 "expect",
1087 "hir_expand",
1087 "itertools", 1088 "itertools",
1088 "log", 1089 "log",
1089 "profile", 1090 "profile",
1090 "ra_hir_def", 1091 "ra_hir_def",
1091 "ra_hir_expand",
1092 "rustc-hash", 1092 "rustc-hash",
1093 "scoped-tls", 1093 "scoped-tls",
1094 "smallvec", 1094 "smallvec",
diff --git a/crates/ra_hir_expand/Cargo.toml b/crates/hir_expand/Cargo.toml
index 41acf3712..1c4699291 100644
--- a/crates/ra_hir_expand/Cargo.toml
+++ b/crates/hir_expand/Cargo.toml
@@ -1,9 +1,9 @@
1[package] 1[package]
2edition = "2018" 2name = "hir_expand"
3name = "ra_hir_expand" 3version = "0.0.0"
4version = "0.1.0"
5authors = ["rust-analyzer developers"]
6license = "MIT OR Apache-2.0" 4license = "MIT OR Apache-2.0"
5authors = ["rust-analyzer developers"]
6edition = "2018"
7 7
8[lib] 8[lib]
9doctest = false 9doctest = false
diff --git a/crates/ra_hir_expand/src/ast_id_map.rs b/crates/hir_expand/src/ast_id_map.rs
index f63629b30..f63629b30 100644
--- a/crates/ra_hir_expand/src/ast_id_map.rs
+++ b/crates/hir_expand/src/ast_id_map.rs
diff --git a/crates/ra_hir_expand/src/builtin_derive.rs b/crates/hir_expand/src/builtin_derive.rs
index 988a60d56..988a60d56 100644
--- a/crates/ra_hir_expand/src/builtin_derive.rs
+++ b/crates/hir_expand/src/builtin_derive.rs
diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/hir_expand/src/builtin_macro.rs
index 86918b626..86918b626 100644
--- a/crates/ra_hir_expand/src/builtin_macro.rs
+++ b/crates/hir_expand/src/builtin_macro.rs
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index dcc038bcd..dcc038bcd 100644
--- a/crates/ra_hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
diff --git a/crates/ra_hir_expand/src/diagnostics.rs b/crates/hir_expand/src/diagnostics.rs
index 59d35debe..59d35debe 100644
--- a/crates/ra_hir_expand/src/diagnostics.rs
+++ b/crates/hir_expand/src/diagnostics.rs
diff --git a/crates/ra_hir_expand/src/eager.rs b/crates/hir_expand/src/eager.rs
index 10c45646f..10c45646f 100644
--- a/crates/ra_hir_expand/src/eager.rs
+++ b/crates/hir_expand/src/eager.rs
diff --git a/crates/ra_hir_expand/src/hygiene.rs b/crates/hir_expand/src/hygiene.rs
index 845e9cbc1..845e9cbc1 100644
--- a/crates/ra_hir_expand/src/hygiene.rs
+++ b/crates/hir_expand/src/hygiene.rs
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/hir_expand/src/lib.rs
index 7425b561a..2be15e841 100644
--- a/crates/ra_hir_expand/src/lib.rs
+++ b/crates/hir_expand/src/lib.rs
@@ -1,4 +1,4 @@
1//! `ra_hir_expand` deals with macro expansion. 1//! `hir_expand` deals with macro expansion.
2//! 2//!
3//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax 3//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax
4//! tree originates not from the text of some `FileId`, but from some macro 4//! tree originates not from the text of some `FileId`, but from some macro
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/hir_expand/src/name.rs
index 49841c7a1..49841c7a1 100644
--- a/crates/ra_hir_expand/src/name.rs
+++ b/crates/hir_expand/src/name.rs
diff --git a/crates/ra_hir_expand/src/proc_macro.rs b/crates/hir_expand/src/proc_macro.rs
index 80255ea32..80255ea32 100644
--- a/crates/ra_hir_expand/src/proc_macro.rs
+++ b/crates/hir_expand/src/proc_macro.rs
diff --git a/crates/ra_hir_expand/src/quote.rs b/crates/hir_expand/src/quote.rs
index 219bc2097..219bc2097 100644
--- a/crates/ra_hir_expand/src/quote.rs
+++ b/crates/hir_expand/src/quote.rs
diff --git a/crates/ra_hir_expand/src/test_db.rs b/crates/hir_expand/src/test_db.rs
index 86a5d867e..86a5d867e 100644
--- a/crates/ra_hir_expand/src/test_db.rs
+++ b/crates/hir_expand/src/test_db.rs
diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml
index 5ccdb74fd..0ec1589c1 100644
--- a/crates/ra_hir/Cargo.toml
+++ b/crates/ra_hir/Cargo.toml
@@ -20,6 +20,6 @@ stdx = { path = "../stdx" }
20syntax = { path = "../syntax" } 20syntax = { path = "../syntax" }
21base_db = { path = "../base_db" } 21base_db = { path = "../base_db" }
22profile = { path = "../profile" } 22profile = { path = "../profile" }
23hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" } 23hir_expand = { path = "../hir_expand" }
24hir_def = { path = "../ra_hir_def", package = "ra_hir_def" } 24hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
25hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" } 25hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" }
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index d4d6b1759..8ffb9e99b 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -815,7 +815,7 @@ pub struct MacroDef {
815impl MacroDef { 815impl MacroDef {
816 /// FIXME: right now, this just returns the root module of the crate that 816 /// FIXME: right now, this just returns the root module of the crate that
817 /// defines this macro. The reasons for this is that macros are expanded 817 /// defines this macro. The reasons for this is that macros are expanded
818 /// early, in `ra_hir_expand`, where modules simply do not exist yet. 818 /// early, in `hir_expand`, where modules simply do not exist yet.
819 pub fn module(self, db: &dyn HirDatabase) -> Option<Module> { 819 pub fn module(self, db: &dyn HirDatabase) -> Option<Module> {
820 let krate = self.id.krate?; 820 let krate = self.id.krate?;
821 let module_id = db.crate_def_map(krate).root; 821 let module_id = db.crate_def_map(krate).root;
diff --git a/crates/ra_hir_def/Cargo.toml b/crates/ra_hir_def/Cargo.toml
index 2b187bc4a..f93a213df 100644
--- a/crates/ra_hir_def/Cargo.toml
+++ b/crates/ra_hir_def/Cargo.toml
@@ -21,12 +21,11 @@ indexmap = "1.4.0"
21smallvec = "1.4.0" 21smallvec = "1.4.0"
22 22
23stdx = { path = "../stdx" } 23stdx = { path = "../stdx" }
24
25arena = { path = "../arena" } 24arena = { path = "../arena" }
26base_db = { path = "../base_db" } 25base_db = { path = "../base_db" }
27syntax = { path = "../syntax" } 26syntax = { path = "../syntax" }
28profile = { path = "../profile" } 27profile = { path = "../profile" }
29hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" } 28hir_expand = { path = "../hir_expand" }
30test_utils = { path = "../test_utils" } 29test_utils = { path = "../test_utils" }
31mbe = { path = "../mbe" } 30mbe = { path = "../mbe" }
32cfg = { path = "../cfg" } 31cfg = { path = "../cfg" }
diff --git a/crates/ra_hir_ty/Cargo.toml b/crates/ra_hir_ty/Cargo.toml
index 720d171ac..75f04f9dd 100644
--- a/crates/ra_hir_ty/Cargo.toml
+++ b/crates/ra_hir_ty/Cargo.toml
@@ -19,7 +19,7 @@ rustc-hash = "1.1.0"
19stdx = { path = "../stdx" } 19stdx = { path = "../stdx" }
20 20
21hir_def = { path = "../ra_hir_def", package = "ra_hir_def" } 21hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
22hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" } 22hir_expand = { path = "../hir_expand" }
23arena = { path = "../arena" } 23arena = { path = "../arena" }
24base_db = { path = "../base_db" } 24base_db = { path = "../base_db" }
25profile = { path = "../profile" } 25profile = { path = "../profile" }
diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs
index 2e68e71db..dc367d1e0 100644
--- a/xtask/tests/tidy.rs
+++ b/xtask/tests/tidy.rs
@@ -193,7 +193,7 @@ impl TidyDocs {
193 193
194 let poorly_documented = [ 194 let poorly_documented = [
195 "ra_hir", 195 "ra_hir",
196 "ra_hir_expand", 196 "hir_expand",
197 "ra_ide", 197 "ra_ide",
198 "mbe", 198 "mbe",
199 "parser", 199 "parser",