Uh oh!
There was an error while loading. Please reload this page.
Added RFC on dereferencing *T - #43
Conversation
huonw
commented
Apr 14, 2014
I'm not in favour of this. Unsafe code is already hard to get right, let alone adding new sources of non-explicitness which can't easily be checked at the source level. |
There was a problem hiding this comment.
This seems like the more fundamental problem, and the one that would fix your issue: Rust doesn't offer flexible enough control over statics to be able to use safe(r) wrappers for this use case.
(That said, it is just essentially just 8 bytes in rodata, right?)
There was a problem hiding this comment.
It's 4 bytes in rodata, four more instructions to fetch the address from there at each call invocation. That isn't critically significant, but easily adds useless weight to binary.
farcaller
commented
Apr 14, 2014
Deprecating this in favour of #44 |
No description provided.