Do not attempt to handle aliasing of procs in variable assignments

Please see the comment in the diff to explain the rationale of this
change.

Closes #4636
This commit is contained in:
Ayaz Hafiz 2022-12-01 15:20:15 -06:00
parent 2dfe0276e4
commit 68e364d897
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
10 changed files with 119 additions and 31 deletions

View file

@ -1387,7 +1387,12 @@ impl<'a> LambdaSet<'a> {
where
I: Interner<'a, Layout<'a>>,
{
debug_assert!(self.contains(function_symbol), "function symbol not in set");
debug_assert!(
self.contains(function_symbol),
"function symbol {:?} not in set {:?}",
function_symbol,
self
);
let comparator = |other_name: Symbol, other_captures_layouts: &[Layout]| {
other_name == function_symbol