]> git.lizzy.rs Git - rust.git/commit
Shrink `ObligationCauseCode` by boxing `IfExpression`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 9 Sep 2019 02:40:54 +0000 (12:40 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Mon, 9 Sep 2019 04:20:24 +0000 (14:20 +1000)
commit2e3b079836823446eb014c69866d6a0f8cca4ef2
tree89005b8caa30791b9e6858899ec31c43e4feeb36
parentb972ac818c98373b6d045956b049dc34932c41be
Shrink `ObligationCauseCode` by boxing `IfExpression`.

The reduction in `memcpy` calls outweighs the cost of the extra
allocations, for a net performance win.
src/librustc/infer/error_reporting/mod.rs
src/librustc/traits/fulfill.rs
src/librustc/traits/mod.rs
src/librustc/traits/structural_impls.rs
src/librustc_typeck/check/_match.rs