aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/item_tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
-rw-r--r--crates/hir_def/src/item_tree.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs
index 7eb388bae..b3ec252fd 100644
--- a/crates/hir_def/src/item_tree.rs
+++ b/crates/hir_def/src/item_tree.rs
@@ -507,6 +507,9 @@ pub struct Function {
507 pub has_self_param: bool, 507 pub has_self_param: bool,
508 pub has_body: bool, 508 pub has_body: bool,
509 pub is_unsafe: bool, 509 pub is_unsafe: bool,
510 /// Whether the function is located in an `extern` block (*not* whether it is an
511 /// `extern "abi" fn`).
512 pub is_extern: bool,
510 pub params: Box<[TypeRef]>, 513 pub params: Box<[TypeRef]>,
511 pub is_varargs: bool, 514 pub is_varargs: bool,
512 pub ret_type: TypeRef, 515 pub ret_type: TypeRef,
@@ -565,6 +568,8 @@ pub struct Static {
565 pub name: Name, 568 pub name: Name,
566 pub visibility: RawVisibilityId, 569 pub visibility: RawVisibilityId,
567 pub mutable: bool, 570 pub mutable: bool,
571 /// Whether the static is in an `extern` block.
572 pub is_extern: bool,
568 pub type_ref: TypeRef, 573 pub type_ref: TypeRef,
569 pub ast_id: FileAstId<ast::Static>, 574 pub ast_id: FileAstId<ast::Static>,
570} 575}