aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/Cargo.toml15
-rw-r--r--crates/hir/src/semantics.rs2
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]
2name = "hir" 2name = "hir"
3version = "0.0.0" 3version = "0.0.0"
4description = "TBD"
4license = "MIT OR Apache-2.0" 5license = "MIT OR Apache-2.0"
5authors = ["rust-analyzer developers"] 6authors = ["rust-analyzer developers"]
6edition = "2018" 7edition = "2018"
@@ -15,10 +16,10 @@ either = "1.5.3"
15arrayvec = "0.5.1" 16arrayvec = "0.5.1"
16itertools = "0.9.0" 17itertools = "0.9.0"
17 18
18stdx = { path = "../stdx" } 19stdx = { path = "../stdx", version = "0.0.0" }
19syntax = { path = "../syntax" } 20syntax = { path = "../syntax", version = "0.0.0" }
20base_db = { path = "../base_db" } 21base_db = { path = "../base_db", version = "0.0.0" }
21profile = { path = "../profile" } 22profile = { path = "../profile", version = "0.0.0" }
22hir_expand = { path = "../hir_expand" } 23hir_expand = { path = "../hir_expand", version = "0.0.0" }
23hir_def = { path = "../hir_def" } 24hir_def = { path = "../hir_def", version = "0.0.0" }
24hir_ty = { path = "../hir_ty" } 25hir_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,