leave a TODO

This commit is contained in:
Folkert 2022-03-05 13:55:30 +01:00
parent d7eee71402
commit 7c83e940bd
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -1112,6 +1112,12 @@ fn canonicalize_pending_def<'a>(
arguments: arguments.clone(),
loc_body: body.clone(),
});
// TODO exploit this fact to remove clones below
debug_assert_eq!(
vec![*defined_symbol],
scope.idents().map(|t| t.1 .0).filter(|x| vars_by_symbol.contains_key(x)).collect::<Vec<_>>()
);
}
// Store the referenced locals in the refs_by_symbol map, so we can later figure out