Skip to content

Commit

Permalink
fix: Complete debug metadata (#3228)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant authored Oct 20, 2023
1 parent 10eae15 commit 2f6509d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/noirc_driver/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub(crate) fn filter_relevant_files(
function_symbols
.locations
.values()
.filter_map(|call_stack| call_stack.last().map(|location| location.file))
.flat_map(|call_stack| call_stack.iter().map(|location| location.file))
})
.collect();

Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo/src/artifacts/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl DebugArtifact {
function_symbols
.locations
.values()
.filter_map(|call_stack| call_stack.last().map(|location| location.file))
.flat_map(|call_stack| call_stack.iter().map(|location| location.file))
})
.collect();

Expand Down

0 comments on commit 2f6509d

Please sign in to comment.