<p dir="auto">Or just use LLVM to do this (if it has a mode that hash-conses to avoid duplicate constants). As per FIXME in <code class="notranslate">trans::base::trans_const_expr</code>.</p>
<p dir="auto">After examination, it doesn't appear that deriving raw pointers presents any kind of safety problem (no derivings dereference unsafe pointers). Most people seem to believe that the original justification presented in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="29818209" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13032" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13032/hovercard" href="https://github.com/rust-lang/rust/issues/13032">#13032</a> isn't sufficient.</p>