diff options
author | Jonas Schievink <[email protected]> | 2020-12-10 14:45:01 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-10 14:45:01 +0000 |
commit | d82292e1ce8112cfa5e42d0221a563649d067747 (patch) | |
tree | 74860cf84ce807a7473cd4f639132df4cf9e617b /crates/hir_def/src/item_tree.rs | |
parent | 1341a98f0551edf3a445c40507ab1abb3d7c71bb (diff) |
Ignore extern items in incorrect-case check
Diffstat (limited to 'crates/hir_def/src/item_tree.rs')
-rw-r--r-- | crates/hir_def/src/item_tree.rs | 5 |
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 | } |