mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Make sure to push more symbols coming from Derived_synth to Derived_gen
This commit is contained in:
parent
0ba5b3cfc6
commit
0d763518f1
2 changed files with 20 additions and 3 deletions
|
@ -133,6 +133,12 @@ impl DerivedModule {
|
|||
self.map.entry(key).or_insert(triple)
|
||||
}
|
||||
|
||||
pub fn is_derived_def(&self, def_symbol: Symbol) -> bool {
|
||||
self.map
|
||||
.iter()
|
||||
.any(|(_, (symbol, _, _))| *symbol == def_symbol)
|
||||
}
|
||||
|
||||
pub fn iter_all(
|
||||
&self,
|
||||
) -> impl Iterator<Item = (&DeriveKey, &(Symbol, Def, SpecializationLambdaSets))> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue