about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-05-12 07:18:04 +0900
committerGitHub <noreply@github.com>2021-05-12 07:18:04 +0900
commitc4c654f422e34530f2728c0aa4d89bd837dbfd8b (patch)
tree9e27391d7f99776ff884f0868b720e18375c7154 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent9ad5c4d8ea514a7685c2c9f7ee2e96206d477311 (diff)
parent69a4ae2030c7b0ad9e228d3021dae128a443bb19 (diff)
downloadrust-c4c654f422e34530f2728c0aa4d89bd837dbfd8b.tar.gz
rust-c4c654f422e34530f2728c0aa4d89bd837dbfd8b.zip
Rollup merge of #85187 - FabianWolff:issue-84976, r=jackh726
Use .name_str() to format primitive types in error messages

This pull request fixes #84976. The problem described there is caused by this code
https://github.com/rust-lang/rust/blob/506e75cbf8cb5305e49a41326307004ca3976029/compiler/rustc_middle/src/ty/error.rs#L161-L166
using `Debug` formatting (`{:?}`), while the proper solution is to call `name_str()` of `ty::IntTy`, `ty::UintTy` and `ty::FloatTy`, respectively.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions