X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_codegen_llvm%2Fvalue.rs;h=1338a229566c82ac10c8dba9add79910cc8f07ce;hb=7f8a61d96c5a628ffb88304eb84a85140479ecad;hp=eadbe754e8e41cdaa07bcaf08587436e995ba45f;hpb=f90ac4f04a740e1f676847209d1f376753bca0d7;p=rust.git diff --git a/src/librustc_codegen_llvm/value.rs b/src/librustc_codegen_llvm/value.rs index eadbe754e8e..1338a229566 100644 --- a/src/librustc_codegen_llvm/value.rs +++ b/src/librustc_codegen_llvm/value.rs @@ -20,11 +20,13 @@ fn hash(&self, hasher: &mut H) { } } - impl fmt::Debug for Value { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(&llvm::build_string(|s| unsafe { - llvm::LLVMRustWriteValueToString(self, s); - }).expect("non-UTF8 value description from LLVM")) + f.write_str( + &llvm::build_string(|s| unsafe { + llvm::LLVMRustWriteValueToString(self, s); + }) + .expect("non-UTF8 value description from LLVM"), + ) } }