mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Merge pull request #1610 from rtfeldman/captured-symbols-layout-error
Captured symbols layout error
This commit is contained in:
commit
349b799d00
2 changed files with 11 additions and 11 deletions
|
@ -4684,14 +4684,16 @@ pub fn from_can<'a>(
|
|||
);
|
||||
CapturedSymbols::None
|
||||
}
|
||||
Err(e) => {
|
||||
debug_assert!(
|
||||
captured_symbols.is_empty(),
|
||||
"{:?}, {:?}",
|
||||
&captured_symbols,
|
||||
e
|
||||
);
|
||||
CapturedSymbols::None
|
||||
Err(_) => {
|
||||
// just allow this. see https://github.com/rtfeldman/roc/issues/1585
|
||||
if captured_symbols.is_empty() {
|
||||
CapturedSymbols::None
|
||||
} else {
|
||||
let mut temp =
|
||||
Vec::from_iter_in(captured_symbols, env.arena);
|
||||
temp.sort();
|
||||
CapturedSymbols::Captured(temp.into_bump_slice())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue