mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Don't change env.home in specialize_all
This commit is contained in:
parent
49a6bd86b4
commit
b442b9c27a
1 changed files with 0 additions and 5 deletions
|
@ -933,11 +933,6 @@ pub fn specialize_all<'a>(
|
||||||
procs.pending_specializations = None;
|
procs.pending_specializations = None;
|
||||||
|
|
||||||
for (name, mut by_layout) in pending_specializations.drain() {
|
for (name, mut by_layout) in pending_specializations.drain() {
|
||||||
// Use the function's symbol's home module as the home module
|
|
||||||
// when doing canonicalization. This will be important to determine
|
|
||||||
// whether or not it's safe to defer specialization.
|
|
||||||
env.home = name.module_id();
|
|
||||||
|
|
||||||
for (layout, pending) in by_layout.drain() {
|
for (layout, pending) in by_layout.drain() {
|
||||||
// If we've already seen this (Symbol, Layout) combination before,
|
// If we've already seen this (Symbol, Layout) combination before,
|
||||||
// don't try to specialize it again. If we do, we'll loop forever!
|
// don't try to specialize it again. If we do, we'll loop forever!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue