Skip to content

Commit

Permalink
Fixes non deterministic method.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Jan 9, 2025
1 parent 2eefab0 commit c47a31f
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 203 deletions.
6 changes: 4 additions & 2 deletions sway-core/src/semantic_analysis/namespace/lexical_scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ impl Items {
Ok(())
}

pub fn get_all_declared_symbols(&self) -> impl Iterator<Item = &Ident> {
self.symbols().keys()
pub fn get_all_declared_symbols(&self) -> Vec<&Ident> {
let mut keys: Vec<_> = self.symbols().keys().collect();
keys.sort();
keys
}

pub fn resolve_symbol(
Expand Down
Loading

0 comments on commit c47a31f

Please sign in to comment.