about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-11-28 12:28:32 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-11-28 17:27:20 +0000
commit26b87bf8ff8406e80e70559b71cf0095475cc64a (patch)
tree57fd97d536d1d9513df63ab20b8c98816e7174c8 /compiler/rustc_codegen_llvm/src/errors.rs
parent7087d9b2a08385eaf7eb035e5ed420a84ef0902c (diff)
downloadrust-26b87bf8ff8406e80e70559b71cf0095475cc64a.tar.gz
rust-26b87bf8ff8406e80e70559b71cf0095475cc64a.zip
Simplify calls to `tcx.mk_const`
`mk_const(ty::ConstKind::X(...), ty)` can now be simplified to
`mk_cosnt(...,                   ty)`.

I searched with the following regex: \mk_const\([\n\s]*(ty::)?ConstKind\
I've left `ty::ConstKind::{Bound, Error}` as-is, they seem clearer this
way.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions