]>
git.proxmox.com Git - rustc.git/blob - src/librustc_codegen_llvm/value.rs
3ad1521be9393bb487ed6c476f43f621418b2a24
6 use std
::hash
::{Hash, Hasher}
;
9 impl PartialEq
for Value
{
10 fn eq(&self, other
: &Self) -> bool
{
18 fn hash
<H
: Hasher
>(&self, hasher
: &mut H
) {
19 (self as *const Self).hash(hasher
);
24 impl fmt
::Debug
for Value
{
25 fn fmt(&self, f
: &mut fmt
::Formatter
) -> fmt
::Result
{
26 f
.write_str(&llvm
::build_string(|s
| unsafe {
27 llvm
::LLVMRustWriteValueToString(self, s
);
28 }).expect("non-UTF8 value description from LLVM"))