X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_codegen_llvm%2Fvalue.rs;h=1338a229566c82ac10c8dba9add79910cc8f07ce;hb=8b16b023b1809fb10ed305cae4349c47c0accebe;hp=68809284bb726988aa05ddd58a7d0737393cb5d6;hpb=abd6f503fef1900f984d7676929581914306257f;p=rust.git diff --git a/src/librustc_codegen_llvm/value.rs b/src/librustc_codegen_llvm/value.rs index 68809284bb7..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")) + 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"), + ) } }