]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #68118 - skinny121:eager_lit_eval, r=varkor
authorbors <bors@rust-lang.org>
Wed, 15 Jan 2020 00:56:53 +0000 (00:56 +0000)
committerbors <bors@rust-lang.org>
Wed, 15 Jan 2020 00:56:53 +0000 (00:56 +0000)
commit4b172cc73f5f1fb1e3d60527fb29605fa267985c
treedac63d985ba13b8150543d9aac64164393e189fd
parent8a87b945b27b5670ac5ed665bbb0fccc1b88a0a0
parent583a4fc827d1f4f491286218549a6048c0a9c9bf
Auto merge of #68118 - skinny121:eager_lit_eval, r=varkor

perf: Eagerly convert literals to consts

Previousely even literal constants were being converted to an `Unevaluted` constant for evaluation later. This seems unecessary as no more information is needed to be able to convert the literal to a mir constant.

Hopefully this will also minimise the performance impact of #67717, as far less constant evaluations are needed.