aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-05 12:51:38 +0000
committerGitHub <[email protected]>2021-01-05 12:51:38 +0000
commitc8d3d5694be065ffb1d52bc33e098ff610693097 (patch)
treec76f0f04f1de55ff75253a8508aa803c4f958caf /crates/hir
parentd7013a5934af1e2aaa60dcf19b1b6bb529594565 (diff)
parentf9707cde6801f13cc4c20e3e08cee07ef23b8563 (diff)
Merge #7168
7168: Rename expr -> tail_expr r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 1a4aa78fb..cc1938333 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -1642,9 +1642,10 @@ impl Type {
1642 } 1642 }
1643 1643
1644 pub fn is_fn(&self) -> bool { 1644 pub fn is_fn(&self) -> bool {
1645 matches!(&self.ty.value, 1645 matches!(
1646 Ty::Apply(ApplicationTy { ctor: TypeCtor::FnDef(..), .. }) | 1646 &self.ty.value,
1647 Ty::Apply(ApplicationTy { ctor: TypeCtor::FnPtr { .. }, .. }) 1647 Ty::Apply(ApplicationTy { ctor: TypeCtor::FnDef(..), .. })
1648 | Ty::Apply(ApplicationTy { ctor: TypeCtor::FnPtr { .. }, .. })
1648 ) 1649 )
1649 } 1650 }
1650 1651