diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-03 20:01:03 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-03 20:01:03 +0100 |
commit | b78f1a0a4d90276c7bd99bd0e5ac6959578be76a (patch) | |
tree | 9e5444bdd56ad6725525764d9f35a20f927b2209 /crates/hir_ty/src/diagnostics/decl_check.rs | |
parent | e2213a503ec4c602eb976dccb9d34b56d9c6aba3 (diff) | |
parent | ee4b5a34d8aa789ebc521926123fba79eebe5981 (diff) |
Merge #8315
8315: Try to reduce ItemTree size further r=jonas-schievink a=jonas-schievink
This was mostly a failed experiment, but still seems like the right thing to do. Memory reduction is mostly negligible.
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/diagnostics/decl_check.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics/decl_check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir_ty/src/diagnostics/decl_check.rs index 33a0f4d7d..207c7cb82 100644 --- a/crates/hir_ty/src/diagnostics/decl_check.rs +++ b/crates/hir_ty/src/diagnostics/decl_check.rs | |||
@@ -91,7 +91,7 @@ impl<'a, 'b> DeclValidator<'a, 'b> { | |||
91 | 91 | ||
92 | fn validate_func(&mut self, func: FunctionId) { | 92 | fn validate_func(&mut self, func: FunctionId) { |
93 | let data = self.db.function_data(func); | 93 | let data = self.db.function_data(func); |
94 | if data.is_in_extern_block { | 94 | if data.is_in_extern_block() { |
95 | cov_mark::hit!(extern_func_incorrect_case_ignored); | 95 | cov_mark::hit!(extern_func_incorrect_case_ignored); |
96 | return; | 96 | return; |
97 | } | 97 | } |