diff options
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/Cargo.toml | 15 | ||||
-rw-r--r-- | crates/hir/src/semantics.rs | 2 |
2 files changed, 9 insertions, 8 deletions
diff --git a/crates/hir/Cargo.toml b/crates/hir/Cargo.toml index dbb2986b6..60a48170e 100644 --- a/crates/hir/Cargo.toml +++ b/crates/hir/Cargo.toml | |||
@@ -1,6 +1,7 @@ | |||
1 | [package] | 1 | [package] |
2 | name = "hir" | 2 | name = "hir" |
3 | version = "0.0.0" | 3 | version = "0.0.0" |
4 | description = "TBD" | ||
4 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
5 | authors = ["rust-analyzer developers"] | 6 | authors = ["rust-analyzer developers"] |
6 | edition = "2018" | 7 | edition = "2018" |
@@ -15,10 +16,10 @@ either = "1.5.3" | |||
15 | arrayvec = "0.5.1" | 16 | arrayvec = "0.5.1" |
16 | itertools = "0.9.0" | 17 | itertools = "0.9.0" |
17 | 18 | ||
18 | stdx = { path = "../stdx" } | 19 | stdx = { path = "../stdx", version = "0.0.0" } |
19 | syntax = { path = "../syntax" } | 20 | syntax = { path = "../syntax", version = "0.0.0" } |
20 | base_db = { path = "../base_db" } | 21 | base_db = { path = "../base_db", version = "0.0.0" } |
21 | profile = { path = "../profile" } | 22 | profile = { path = "../profile", version = "0.0.0" } |
22 | hir_expand = { path = "../hir_expand" } | 23 | hir_expand = { path = "../hir_expand", version = "0.0.0" } |
23 | hir_def = { path = "../hir_def" } | 24 | hir_def = { path = "../hir_def", version = "0.0.0" } |
24 | hir_ty = { path = "../hir_ty" } | 25 | hir_ty = { path = "../hir_ty", version = "0.0.0" } |
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs index 8c5f2ff98..1594d4f0f 100644 --- a/crates/hir/src/semantics.rs +++ b/crates/hir/src/semantics.rs | |||
@@ -573,7 +573,7 @@ impl<'db> SemanticsImpl<'db> { | |||
573 | 573 | ||
574 | fn is_unsafe_method_call(&self, method_call_expr: &ast::MethodCallExpr) -> bool { | 574 | fn is_unsafe_method_call(&self, method_call_expr: &ast::MethodCallExpr) -> bool { |
575 | method_call_expr | 575 | method_call_expr |
576 | .expr() | 576 | .receiver() |
577 | .and_then(|expr| { | 577 | .and_then(|expr| { |
578 | let field_expr = match expr { | 578 | let field_expr = match expr { |
579 | ast::Expr::FieldExpr(field_expr) => field_expr, | 579 | ast::Expr::FieldExpr(field_expr) => field_expr, |