Skip to content

Commit 33c014b

Browse files
authored
fix private macros beeing 'private unused' in the LSP when they are used (#731)
1 parent b93cb0f commit 33c014b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compile/modifier.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,8 @@ impl Compiler {
15311531
for (local, comp) in path_locals.into_iter().zip(&r.path) {
15321532
(self.code_meta.global_references).insert(comp.module.span.clone(), local.index);
15331533
}
1534+
let binfo = &mut self.asm.bindings.make_mut()[local.index];
1535+
binfo.used = true;
15341536
// Handle recursion depth
15351537
self.comptime_depth += 1;
15361538
if self.comptime_depth > MAX_COMPTIME_DEPTH {

0 commit comments

Comments
 (0)