diff options
author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-11-28 12:28:32 +0000 |
---|---|---|
committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-11-28 17:27:20 +0000 |
commit | 26b87bf8ff8406e80e70559b71cf0095475cc64a (patch) | |
tree | 57fd97d536d1d9513df63ab20b8c98816e7174c8 /tests/rustdoc-js-std/parser-errors.js | |
parent | 7087d9b2a08385eaf7eb035e5ed420a84ef0902c (diff) | |
download | rust-26b87bf8ff8406e80e70559b71cf0095475cc64a.tar.gz |
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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions