3 ms·
I think there is probably a way to do what you're doing with unsafe. You could write a library that copies handles and can dump potentially freed memory afterwa
by whatshisface 10mo ago
I think there is probably a way to do what you're doing with unsafe. You could write a library that copies handles and can dump potentially freed memory afterwards.
- g-mork 10mo agoSome kind of cargo plugin that transforms all references in the project into pointers and casts prior to feeding to rustc would probably be the best practice and highly maintainable route I'd go. like "cargo expand" but with a fancy catchier name that encourages new users to rely on it. "cargo autofix" might work
- jvanderbot 10mo agoThere's definitely a way to do it without unsafe! It just isn't as simple as dropping one println out so.... Lets alter the compiler? I gotta applaud that level of my-way-or-the-highway