aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_def/Cargo.toml (renamed from crates/ra_hir_def/Cargo.toml)8
-rw-r--r--crates/hir_def/src/adt.rs (renamed from crates/ra_hir_def/src/adt.rs)0
-rw-r--r--crates/hir_def/src/attr.rs (renamed from crates/ra_hir_def/src/attr.rs)0
-rw-r--r--crates/hir_def/src/body.rs (renamed from crates/ra_hir_def/src/body.rs)0
-rw-r--r--crates/hir_def/src/body/lower.rs (renamed from crates/ra_hir_def/src/body/lower.rs)0
-rw-r--r--crates/hir_def/src/body/scope.rs (renamed from crates/ra_hir_def/src/body/scope.rs)0
-rw-r--r--crates/hir_def/src/builtin_type.rs (renamed from crates/ra_hir_def/src/builtin_type.rs)0
-rw-r--r--crates/hir_def/src/child_by_source.rs (renamed from crates/ra_hir_def/src/child_by_source.rs)0
-rw-r--r--crates/hir_def/src/data.rs (renamed from crates/ra_hir_def/src/data.rs)0
-rw-r--r--crates/hir_def/src/db.rs (renamed from crates/ra_hir_def/src/db.rs)0
-rw-r--r--crates/hir_def/src/diagnostics.rs (renamed from crates/ra_hir_def/src/diagnostics.rs)0
-rw-r--r--crates/hir_def/src/docs.rs (renamed from crates/ra_hir_def/src/docs.rs)0
-rw-r--r--crates/hir_def/src/dyn_map.rs (renamed from crates/ra_hir_def/src/dyn_map.rs)0
-rw-r--r--crates/hir_def/src/expr.rs (renamed from crates/ra_hir_def/src/expr.rs)0
-rw-r--r--crates/hir_def/src/find_path.rs (renamed from crates/ra_hir_def/src/find_path.rs)0
-rw-r--r--crates/hir_def/src/generics.rs (renamed from crates/ra_hir_def/src/generics.rs)0
-rw-r--r--crates/hir_def/src/import_map.rs (renamed from crates/ra_hir_def/src/import_map.rs)0
-rw-r--r--crates/hir_def/src/item_scope.rs (renamed from crates/ra_hir_def/src/item_scope.rs)0
-rw-r--r--crates/hir_def/src/item_tree.rs (renamed from crates/ra_hir_def/src/item_tree.rs)0
-rw-r--r--crates/hir_def/src/item_tree/lower.rs (renamed from crates/ra_hir_def/src/item_tree/lower.rs)0
-rw-r--r--crates/hir_def/src/item_tree/tests.rs (renamed from crates/ra_hir_def/src/item_tree/tests.rs)8
-rw-r--r--crates/hir_def/src/keys.rs (renamed from crates/ra_hir_def/src/keys.rs)0
-rw-r--r--crates/hir_def/src/lang_item.rs (renamed from crates/ra_hir_def/src/lang_item.rs)0
-rw-r--r--crates/hir_def/src/lib.rs (renamed from crates/ra_hir_def/src/lib.rs)0
-rw-r--r--crates/hir_def/src/nameres.rs (renamed from crates/ra_hir_def/src/nameres.rs)0
-rw-r--r--crates/hir_def/src/nameres/collector.rs (renamed from crates/ra_hir_def/src/nameres/collector.rs)0
-rw-r--r--crates/hir_def/src/nameres/mod_resolution.rs (renamed from crates/ra_hir_def/src/nameres/mod_resolution.rs)0
-rw-r--r--crates/hir_def/src/nameres/path_resolution.rs (renamed from crates/ra_hir_def/src/nameres/path_resolution.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests.rs (renamed from crates/ra_hir_def/src/nameres/tests.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests/globs.rs (renamed from crates/ra_hir_def/src/nameres/tests/globs.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests/incremental.rs (renamed from crates/ra_hir_def/src/nameres/tests/incremental.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests/macros.rs (renamed from crates/ra_hir_def/src/nameres/tests/macros.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests/mod_resolution.rs (renamed from crates/ra_hir_def/src/nameres/tests/mod_resolution.rs)0
-rw-r--r--crates/hir_def/src/nameres/tests/primitives.rs (renamed from crates/ra_hir_def/src/nameres/tests/primitives.rs)0
-rw-r--r--crates/hir_def/src/path.rs (renamed from crates/ra_hir_def/src/path.rs)0
-rw-r--r--crates/hir_def/src/path/lower.rs (renamed from crates/ra_hir_def/src/path/lower.rs)0
-rw-r--r--crates/hir_def/src/path/lower/lower_use.rs (renamed from crates/ra_hir_def/src/path/lower/lower_use.rs)0
-rw-r--r--crates/hir_def/src/per_ns.rs (renamed from crates/ra_hir_def/src/per_ns.rs)0
-rw-r--r--crates/hir_def/src/resolver.rs (renamed from crates/ra_hir_def/src/resolver.rs)0
-rw-r--r--crates/hir_def/src/src.rs (renamed from crates/ra_hir_def/src/src.rs)0
-rw-r--r--crates/hir_def/src/test_db.rs (renamed from crates/ra_hir_def/src/test_db.rs)0
-rw-r--r--crates/hir_def/src/trace.rs (renamed from crates/ra_hir_def/src/trace.rs)0
-rw-r--r--crates/hir_def/src/type_ref.rs (renamed from crates/ra_hir_def/src/type_ref.rs)0
-rw-r--r--crates/hir_def/src/visibility.rs (renamed from crates/ra_hir_def/src/visibility.rs)0
-rw-r--r--crates/ra_hir/Cargo.toml2
-rw-r--r--crates/ra_hir_ty/Cargo.toml2
-rw-r--r--crates/ra_hir_ty/src/tests/simple.rs4
-rw-r--r--crates/rust-analyzer/Cargo.toml2
-rw-r--r--crates/rust-analyzer/src/diagnostics/to_proto.rs12
-rw-r--r--crates/rust-analyzer/test_data/macro_compiler_error.txt4
50 files changed, 21 insertions, 21 deletions
diff --git a/crates/ra_hir_def/Cargo.toml b/crates/hir_def/Cargo.toml
index f93a213df..403bc2aff 100644
--- a/crates/ra_hir_def/Cargo.toml
+++ b/crates/hir_def/Cargo.toml
@@ -1,9 +1,9 @@
1[package] 1[package]
2edition = "2018" 2name = "hir_def"
3name = "ra_hir_def" 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_def/src/adt.rs b/crates/hir_def/src/adt.rs
index d69ff2fc7..d69ff2fc7 100644
--- a/crates/ra_hir_def/src/adt.rs
+++ b/crates/hir_def/src/adt.rs
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/hir_def/src/attr.rs
index dea552a60..dea552a60 100644
--- a/crates/ra_hir_def/src/attr.rs
+++ b/crates/hir_def/src/attr.rs
diff --git a/crates/ra_hir_def/src/body.rs b/crates/hir_def/src/body.rs
index 9a9a605dd..9a9a605dd 100644
--- a/crates/ra_hir_def/src/body.rs
+++ b/crates/hir_def/src/body.rs
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/hir_def/src/body/lower.rs
index a26251cde..a26251cde 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/hir_def/src/body/lower.rs
diff --git a/crates/ra_hir_def/src/body/scope.rs b/crates/hir_def/src/body/scope.rs
index 9142bc05b..9142bc05b 100644
--- a/crates/ra_hir_def/src/body/scope.rs
+++ b/crates/hir_def/src/body/scope.rs
diff --git a/crates/ra_hir_def/src/builtin_type.rs b/crates/hir_def/src/builtin_type.rs
index 0f872b5c0..0f872b5c0 100644
--- a/crates/ra_hir_def/src/builtin_type.rs
+++ b/crates/hir_def/src/builtin_type.rs
diff --git a/crates/ra_hir_def/src/child_by_source.rs b/crates/hir_def/src/child_by_source.rs
index dcb00a1d9..dcb00a1d9 100644
--- a/crates/ra_hir_def/src/child_by_source.rs
+++ b/crates/hir_def/src/child_by_source.rs
diff --git a/crates/ra_hir_def/src/data.rs b/crates/hir_def/src/data.rs
index 9a8eb4ede..9a8eb4ede 100644
--- a/crates/ra_hir_def/src/data.rs
+++ b/crates/hir_def/src/data.rs
diff --git a/crates/ra_hir_def/src/db.rs b/crates/hir_def/src/db.rs
index 6d694de11..6d694de11 100644
--- a/crates/ra_hir_def/src/db.rs
+++ b/crates/hir_def/src/db.rs
diff --git a/crates/ra_hir_def/src/diagnostics.rs b/crates/hir_def/src/diagnostics.rs
index 2e38a978f..2e38a978f 100644
--- a/crates/ra_hir_def/src/diagnostics.rs
+++ b/crates/hir_def/src/diagnostics.rs
diff --git a/crates/ra_hir_def/src/docs.rs b/crates/hir_def/src/docs.rs
index e9a02b11b..e9a02b11b 100644
--- a/crates/ra_hir_def/src/docs.rs
+++ b/crates/hir_def/src/docs.rs
diff --git a/crates/ra_hir_def/src/dyn_map.rs b/crates/hir_def/src/dyn_map.rs
index 6f269d7b0..6f269d7b0 100644
--- a/crates/ra_hir_def/src/dyn_map.rs
+++ b/crates/hir_def/src/dyn_map.rs
diff --git a/crates/ra_hir_def/src/expr.rs b/crates/hir_def/src/expr.rs
index c94b3a36f..c94b3a36f 100644
--- a/crates/ra_hir_def/src/expr.rs
+++ b/crates/hir_def/src/expr.rs
diff --git a/crates/ra_hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs
index ac2c54ac5..ac2c54ac5 100644
--- a/crates/ra_hir_def/src/find_path.rs
+++ b/crates/hir_def/src/find_path.rs
diff --git a/crates/ra_hir_def/src/generics.rs b/crates/hir_def/src/generics.rs
index 835fe3fbd..835fe3fbd 100644
--- a/crates/ra_hir_def/src/generics.rs
+++ b/crates/hir_def/src/generics.rs
diff --git a/crates/ra_hir_def/src/import_map.rs b/crates/hir_def/src/import_map.rs
index d32a0bdaf..d32a0bdaf 100644
--- a/crates/ra_hir_def/src/import_map.rs
+++ b/crates/hir_def/src/import_map.rs
diff --git a/crates/ra_hir_def/src/item_scope.rs b/crates/hir_def/src/item_scope.rs
index f1e9dfd5b..f1e9dfd5b 100644
--- a/crates/ra_hir_def/src/item_scope.rs
+++ b/crates/hir_def/src/item_scope.rs
diff --git a/crates/ra_hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs
index e14722cae..e14722cae 100644
--- a/crates/ra_hir_def/src/item_tree.rs
+++ b/crates/hir_def/src/item_tree.rs
diff --git a/crates/ra_hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs
index 391ab5d39..391ab5d39 100644
--- a/crates/ra_hir_def/src/item_tree/lower.rs
+++ b/crates/hir_def/src/item_tree/lower.rs
diff --git a/crates/ra_hir_def/src/item_tree/tests.rs b/crates/hir_def/src/item_tree/tests.rs
index 2f62eddcb..9c5bf72bd 100644
--- a/crates/ra_hir_def/src/item_tree/tests.rs
+++ b/crates/hir_def/src/item_tree/tests.rs
@@ -246,13 +246,13 @@ fn smoke() {
246 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct0"))] }, input: None }]) }] 246 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct0"))] }, input: None }]) }]
247 Struct { name: Name(Text("Struct0")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(1), fields: Unit, ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(3), kind: Unit } 247 Struct { name: Name(Text("Struct0")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(1), fields: Unit, ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(3), kind: Unit }
248 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct1"))] }, input: None }]) }] 248 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct1"))] }, input: None }]) }]
249 Struct { name: Name(Text("Struct1")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(2), fields: Tuple(IdRange::<ra_hir_def::item_tree::Field>(0..1)), ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(4), kind: Tuple } 249 Struct { name: Name(Text("Struct1")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(2), fields: Tuple(IdRange::<hir_def::item_tree::Field>(0..1)), ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(4), kind: Tuple }
250 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct2"))] }, input: None }]) }] 250 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("struct2"))] }, input: None }]) }]
251 Struct { name: Name(Text("Struct2")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(3), fields: Record(IdRange::<ra_hir_def::item_tree::Field>(1..2)), ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(5), kind: Record } 251 Struct { name: Name(Text("Struct2")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(3), fields: Record(IdRange::<hir_def::item_tree::Field>(1..2)), ast_id: FileAstId::<syntax::ast::generated::nodes::Struct>(5), kind: Record }
252 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("en"))] }, input: None }]) }] 252 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("en"))] }, input: None }]) }]
253 Enum { name: Name(Text("En")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(4294967295), variants: IdRange::<ra_hir_def::item_tree::Variant>(0..1), ast_id: FileAstId::<syntax::ast::generated::nodes::Enum>(6) } 253 Enum { name: Name(Text("En")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(4294967295), variants: IdRange::<hir_def::item_tree::Variant>(0..1), ast_id: FileAstId::<syntax::ast::generated::nodes::Enum>(6) }
254 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("un"))] }, input: None }]) }] 254 #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("un"))] }, input: None }]) }]
255 Union { name: Name(Text("Un")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(4294967295), fields: Record(IdRange::<ra_hir_def::item_tree::Field>(3..4)), ast_id: FileAstId::<syntax::ast::generated::nodes::Union>(7) } 255 Union { name: Name(Text("Un")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(4294967295), fields: Record(IdRange::<hir_def::item_tree::Field>(3..4)), ast_id: FileAstId::<syntax::ast::generated::nodes::Union>(7) }
256 "##]], 256 "##]],
257 ); 257 );
258} 258}
diff --git a/crates/ra_hir_def/src/keys.rs b/crates/hir_def/src/keys.rs
index 40a5d92b5..40a5d92b5 100644
--- a/crates/ra_hir_def/src/keys.rs
+++ b/crates/hir_def/src/keys.rs
diff --git a/crates/ra_hir_def/src/lang_item.rs b/crates/hir_def/src/lang_item.rs
index 063eadccb..063eadccb 100644
--- a/crates/ra_hir_def/src/lang_item.rs
+++ b/crates/hir_def/src/lang_item.rs
diff --git a/crates/ra_hir_def/src/lib.rs b/crates/hir_def/src/lib.rs
index f24a1dd77..f24a1dd77 100644
--- a/crates/ra_hir_def/src/lib.rs
+++ b/crates/hir_def/src/lib.rs
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/hir_def/src/nameres.rs
index bf302172d..bf302172d 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/hir_def/src/nameres.rs
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs
index 3e99c8773..3e99c8773 100644
--- a/crates/ra_hir_def/src/nameres/collector.rs
+++ b/crates/hir_def/src/nameres/collector.rs
diff --git a/crates/ra_hir_def/src/nameres/mod_resolution.rs b/crates/hir_def/src/nameres/mod_resolution.rs
index e8389b484..e8389b484 100644
--- a/crates/ra_hir_def/src/nameres/mod_resolution.rs
+++ b/crates/hir_def/src/nameres/mod_resolution.rs
diff --git a/crates/ra_hir_def/src/nameres/path_resolution.rs b/crates/hir_def/src/nameres/path_resolution.rs
index 88e10574e..88e10574e 100644
--- a/crates/ra_hir_def/src/nameres/path_resolution.rs
+++ b/crates/hir_def/src/nameres/path_resolution.rs
diff --git a/crates/ra_hir_def/src/nameres/tests.rs b/crates/hir_def/src/nameres/tests.rs
index b105d56b2..b105d56b2 100644
--- a/crates/ra_hir_def/src/nameres/tests.rs
+++ b/crates/hir_def/src/nameres/tests.rs
diff --git a/crates/ra_hir_def/src/nameres/tests/globs.rs b/crates/hir_def/src/nameres/tests/globs.rs
index 2ae836e3c..2ae836e3c 100644
--- a/crates/ra_hir_def/src/nameres/tests/globs.rs
+++ b/crates/hir_def/src/nameres/tests/globs.rs
diff --git a/crates/ra_hir_def/src/nameres/tests/incremental.rs b/crates/hir_def/src/nameres/tests/incremental.rs
index cfbc62cc4..cfbc62cc4 100644
--- a/crates/ra_hir_def/src/nameres/tests/incremental.rs
+++ b/crates/hir_def/src/nameres/tests/incremental.rs
diff --git a/crates/ra_hir_def/src/nameres/tests/macros.rs b/crates/hir_def/src/nameres/tests/macros.rs
index e0fb8bdef..e0fb8bdef 100644
--- a/crates/ra_hir_def/src/nameres/tests/macros.rs
+++ b/crates/hir_def/src/nameres/tests/macros.rs
diff --git a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs b/crates/hir_def/src/nameres/tests/mod_resolution.rs
index 1f619787e..1f619787e 100644
--- a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs
+++ b/crates/hir_def/src/nameres/tests/mod_resolution.rs
diff --git a/crates/ra_hir_def/src/nameres/tests/primitives.rs b/crates/hir_def/src/nameres/tests/primitives.rs
index 215e8952d..215e8952d 100644
--- a/crates/ra_hir_def/src/nameres/tests/primitives.rs
+++ b/crates/hir_def/src/nameres/tests/primitives.rs
diff --git a/crates/ra_hir_def/src/path.rs b/crates/hir_def/src/path.rs
index 74d26f08b..74d26f08b 100644
--- a/crates/ra_hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
diff --git a/crates/ra_hir_def/src/path/lower.rs b/crates/hir_def/src/path/lower.rs
index 07b9723ce..07b9723ce 100644
--- a/crates/ra_hir_def/src/path/lower.rs
+++ b/crates/hir_def/src/path/lower.rs
diff --git a/crates/ra_hir_def/src/path/lower/lower_use.rs b/crates/hir_def/src/path/lower/lower_use.rs
index 53cecb05f..53cecb05f 100644
--- a/crates/ra_hir_def/src/path/lower/lower_use.rs
+++ b/crates/hir_def/src/path/lower/lower_use.rs
diff --git a/crates/ra_hir_def/src/per_ns.rs b/crates/hir_def/src/per_ns.rs
index 74665c588..74665c588 100644
--- a/crates/ra_hir_def/src/per_ns.rs
+++ b/crates/hir_def/src/per_ns.rs
diff --git a/crates/ra_hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs
index f8cc5e075..f8cc5e075 100644
--- a/crates/ra_hir_def/src/resolver.rs
+++ b/crates/hir_def/src/resolver.rs
diff --git a/crates/ra_hir_def/src/src.rs b/crates/hir_def/src/src.rs
index 7a79b0314..7a79b0314 100644
--- a/crates/ra_hir_def/src/src.rs
+++ b/crates/hir_def/src/src.rs
diff --git a/crates/ra_hir_def/src/test_db.rs b/crates/hir_def/src/test_db.rs
index 42a762936..42a762936 100644
--- a/crates/ra_hir_def/src/test_db.rs
+++ b/crates/hir_def/src/test_db.rs
diff --git a/crates/ra_hir_def/src/trace.rs b/crates/hir_def/src/trace.rs
index fd64e7018..fd64e7018 100644
--- a/crates/ra_hir_def/src/trace.rs
+++ b/crates/hir_def/src/trace.rs
diff --git a/crates/ra_hir_def/src/type_ref.rs b/crates/hir_def/src/type_ref.rs
index 1a78c1444..1a78c1444 100644
--- a/crates/ra_hir_def/src/type_ref.rs
+++ b/crates/hir_def/src/type_ref.rs
diff --git a/crates/ra_hir_def/src/visibility.rs b/crates/hir_def/src/visibility.rs
index e6e0853a3..e6e0853a3 100644
--- a/crates/ra_hir_def/src/visibility.rs
+++ b/crates/hir_def/src/visibility.rs
diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml
index 0ec1589c1..edca5dc6f 100644
--- a/crates/ra_hir/Cargo.toml
+++ b/crates/ra_hir/Cargo.toml
@@ -21,5 +21,5 @@ syntax = { path = "../syntax" }
21base_db = { path = "../base_db" } 21base_db = { path = "../base_db" }
22profile = { path = "../profile" } 22profile = { path = "../profile" }
23hir_expand = { path = "../hir_expand" } 23hir_expand = { path = "../hir_expand" }
24hir_def = { path = "../ra_hir_def", package = "ra_hir_def" } 24hir_def = { path = "../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_ty/Cargo.toml b/crates/ra_hir_ty/Cargo.toml
index 75f04f9dd..d430b08ca 100644
--- a/crates/ra_hir_ty/Cargo.toml
+++ b/crates/ra_hir_ty/Cargo.toml
@@ -18,7 +18,7 @@ rustc-hash = "1.1.0"
18 18
19stdx = { path = "../stdx" } 19stdx = { path = "../stdx" }
20 20
21hir_def = { path = "../ra_hir_def", package = "ra_hir_def" } 21hir_def = { path = "../hir_def" }
22hir_expand = { path = "../hir_expand" } 22hir_expand = { path = "../hir_expand" }
23arena = { path = "../arena" } 23arena = { path = "../arena" }
24base_db = { path = "../base_db" } 24base_db = { path = "../base_db" }
diff --git a/crates/ra_hir_ty/src/tests/simple.rs b/crates/ra_hir_ty/src/tests/simple.rs
index 5a7cf9455..59eb59d5f 100644
--- a/crates/ra_hir_ty/src/tests/simple.rs
+++ b/crates/ra_hir_ty/src/tests/simple.rs
@@ -1776,8 +1776,8 @@ fn main() {
1776 ); 1776 );
1777} 1777}
1778 1778
1779// This test is actually testing the shadowing behavior within ra_hir_def. It 1779// This test is actually testing the shadowing behavior within hir_def. It
1780// lives here because the testing infrastructure in ra_hir_def isn't currently 1780// lives here because the testing infrastructure in hir_def isn't currently
1781// capable of asserting the necessary conditions. 1781// capable of asserting the necessary conditions.
1782#[test] 1782#[test]
1783fn should_be_shadowing_imports() { 1783fn should_be_shadowing_imports() {
diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml
index 210d9e9c8..0dee719de 100644
--- a/crates/rust-analyzer/Cargo.toml
+++ b/crates/rust-analyzer/Cargo.toml
@@ -50,7 +50,7 @@ base_db = { path = "../base_db" }
50ra_ide_db = { path = "../ra_ide_db" } 50ra_ide_db = { path = "../ra_ide_db" }
51ra_ssr = { path = "../ra_ssr" } 51ra_ssr = { path = "../ra_ssr" }
52hir = { path = "../ra_hir", package = "ra_hir" } 52hir = { path = "../ra_hir", package = "ra_hir" }
53hir_def = { path = "../ra_hir_def", package = "ra_hir_def" } 53hir_def = { path = "../hir_def" }
54hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" } 54hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" }
55proc_macro_srv = { path = "../proc_macro_srv" } 55proc_macro_srv = { path = "../proc_macro_srv" }
56 56
diff --git a/crates/rust-analyzer/src/diagnostics/to_proto.rs b/crates/rust-analyzer/src/diagnostics/to_proto.rs
index 97f331352..6d5408156 100644
--- a/crates/rust-analyzer/src/diagnostics/to_proto.rs
+++ b/crates/rust-analyzer/src/diagnostics/to_proto.rs
@@ -1116,7 +1116,7 @@ mod tests {
1116 fn macro_compiler_error() { 1116 fn macro_compiler_error() {
1117 check( 1117 check(
1118 r##"{ 1118 r##"{
1119 "rendered": "error: Please register your known path in the path module\n --> crates/ra_hir_def/src/path.rs:265:9\n |\n265 | compile_error!(\"Please register your known path in the path module\")\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | \n ::: crates/ra_hir_def/src/data.rs:80:16\n |\n80 | let path = path![std::future::Future];\n | -------------------------- in this macro invocation\n\n", 1119 "rendered": "error: Please register your known path in the path module\n --> crates/hir_def/src/path.rs:265:9\n |\n265 | compile_error!(\"Please register your known path in the path module\")\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | \n ::: crates/hir_def/src/data.rs:80:16\n |\n80 | let path = path![std::future::Future];\n | -------------------------- in this macro invocation\n\n",
1120 "children": [], 1120 "children": [],
1121 "code": null, 1121 "code": null,
1122 "level": "error", 1122 "level": "error",
@@ -1134,7 +1134,7 @@ mod tests {
1134 "column_end": 2, 1134 "column_end": 2,
1135 "column_start": 1, 1135 "column_start": 1,
1136 "expansion": null, 1136 "expansion": null,
1137 "file_name": "crates/ra_hir_def/src/path.rs", 1137 "file_name": "crates/hir_def/src/path.rs",
1138 "is_primary": false, 1138 "is_primary": false,
1139 "label": null, 1139 "label": null,
1140 "line_end": 267, 1140 "line_end": 267,
@@ -1227,7 +1227,7 @@ mod tests {
1227 "column_end": 2, 1227 "column_end": 2,
1228 "column_start": 1, 1228 "column_start": 1,
1229 "expansion": null, 1229 "expansion": null,
1230 "file_name": "crates/ra_hir_def/src/path.rs", 1230 "file_name": "crates/hir_def/src/path.rs",
1231 "is_primary": false, 1231 "is_primary": false,
1232 "label": null, 1232 "label": null,
1233 "line_end": 277, 1233 "line_end": 277,
@@ -1284,7 +1284,7 @@ mod tests {
1284 "column_end": 42, 1284 "column_end": 42,
1285 "column_start": 16, 1285 "column_start": 16,
1286 "expansion": null, 1286 "expansion": null,
1287 "file_name": "crates/ra_hir_def/src/data.rs", 1287 "file_name": "crates/hir_def/src/data.rs",
1288 "is_primary": false, 1288 "is_primary": false,
1289 "label": null, 1289 "label": null,
1290 "line_end": 80, 1290 "line_end": 80,
@@ -1300,7 +1300,7 @@ mod tests {
1300 ] 1300 ]
1301 } 1301 }
1302 }, 1302 },
1303 "file_name": "crates/ra_hir_def/src/path.rs", 1303 "file_name": "crates/hir_def/src/path.rs",
1304 "is_primary": false, 1304 "is_primary": false,
1305 "label": null, 1305 "label": null,
1306 "line_end": 272, 1306 "line_end": 272,
@@ -1316,7 +1316,7 @@ mod tests {
1316 ] 1316 ]
1317 } 1317 }
1318 }, 1318 },
1319 "file_name": "crates/ra_hir_def/src/path.rs", 1319 "file_name": "crates/hir_def/src/path.rs",
1320 "is_primary": true, 1320 "is_primary": true,
1321 "label": null, 1321 "label": null,
1322 "line_end": 265, 1322 "line_end": 265,
diff --git a/crates/rust-analyzer/test_data/macro_compiler_error.txt b/crates/rust-analyzer/test_data/macro_compiler_error.txt
index f695db73c..89dae7d5a 100644
--- a/crates/rust-analyzer/test_data/macro_compiler_error.txt
+++ b/crates/rust-analyzer/test_data/macro_compiler_error.txt
@@ -1,6 +1,6 @@
1[ 1[
2 MappedRustDiagnostic { 2 MappedRustDiagnostic {
3 url: "file:///test/crates/ra_hir_def/src/data.rs", 3 url: "file:///test/crates/hir_def/src/data.rs",
4 diagnostic: Diagnostic { 4 diagnostic: Diagnostic {
5 range: Range { 5 range: Range {
6 start: Position { 6 start: Position {
@@ -24,7 +24,7 @@
24 [ 24 [
25 DiagnosticRelatedInformation { 25 DiagnosticRelatedInformation {
26 location: Location { 26 location: Location {
27 uri: "file:///test/crates/ra_hir_def/src/path.rs", 27 uri: "file:///test/crates/hir_def/src/path.rs",
28 range: Range { 28 range: Range {
29 start: Position { 29 start: Position {
30 line: 264, 30 line: 264,