Single-threaded layout interner should resolve recursive pointer

This commit is contained in:
Ayaz Hafiz 2023-01-25 17:19:39 -06:00
parent 44acb7e047
commit 61b11c9882
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -843,7 +843,7 @@ macro_rules! st_impl {
// - if so, use that one immediately
// - otherwise, allocate a new slot, update the recursive layout, and intern
if let Some(in_layout) = self.map.get(&normalized_layout) {
return *in_layout;
return self.insert(Layout::RecursivePointer(*in_layout));
}
// This recursive layout must be new to the interner, reserve a slot and fill it in.