ICE with unsized associated type #60431
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-codegen
Area: Code generation
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
produces:
Some context as to what that's actually for: the idea was to use the len metadata of the slice within the
DynRef
to smuggle a pointer to the arena in question. At first glance you'd think you could also do:But the problem is that is mutable borrows: if
Ref
implementsDerefMut
there's no way to both access the value and the arena at the same time. You need them separate, and deliberately public:allowing implementations like:
...and as for why the object can't just own a reference to the arena it's in, tl;dr: memmap;
The text was updated successfully, but these errors were encountered: