charon icon indicating copy to clipboard operation
charon copied to clipboard

Bug: monomorphized items have incorrect generics

Open Nadrieril opened this issue 6 months ago • 1 comments

I discovered in https://github.com/AeneasVerif/charon/pull/723 that we used to not check all items in check_generics, specifically not items created after translation. This revealed that monomorphized items have incorrect generics wrt lifetimes.

I probably broke that myself because I tweaked that recently. Either way, opening that so I don't forget (in https://github.com/AeneasVerif/charon/pull/723 I added a hack so that check_generics keeps not checking monomorphized items x)).

cc @N1ark

Nadrieril avatar Jun 19 '25 18:06 Nadrieril

The old monomorphization pass has been removed. The new one does also have some generics bugs, from the looks of it just a detail in BuiltinOrAuto most likely coming from on oversight on the hax side.

To close this issue we should remove the is_monomorphized() special case in the check_generics pass.

Nadrieril avatar Oct 22 '25 18:10 Nadrieril