mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix: AppHeader::iter_tokens
iterates provides
twice
Fixes panic: ``` thread 'main' panicked at crates/language_server/src/analysis/semantic_tokens.rs:31:13: attempt to subtract with overflow [Error - 11:21:33 AM] Request textDocument/semanticTokens/full failed. Message: Any { .. } Code: -32603 ```
This commit is contained in:
parent
9d37c906fe
commit
ccca5681e5
1 changed files with 0 additions and 1 deletions
|
@ -254,7 +254,6 @@ impl IterTokens for AppHeader<'_> {
|
|||
|
||||
(provides.iter_tokens(arena).into_iter())
|
||||
.chain(packages.value.iter_tokens(arena))
|
||||
.chain(provides.iter_tokens(arena))
|
||||
.chain(old_imports.iter().flat_map(|i| i.item.iter_tokens(arena)))
|
||||
.collect_in(arena)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue