diff options
| author | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2019-11-11 14:32:36 +0000 |
|---|---|---|
| committer | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2019-11-27 12:01:04 +0000 |
| commit | 539813944d69ae20e5c576ccd05578f861ee895b (patch) | |
| tree | 257e8900dfdbdff52dcd2e81abd9f4bfb18abbce /src/test/debuginfo/enum-thinlto.rs | |
| parent | b5f265eeed23ac87ec6b4a7e6bc7cb4ea3e67c31 (diff) | |
| download | rust-539813944d69ae20e5c576ccd05578f861ee895b.tar.gz rust-539813944d69ae20e5c576ccd05578f861ee895b.zip | |
Add memoization for const function evaluations
When a const function is being evaluated, as long as all its arguments are zero-sized-types (or it has no arguments) then we can trivially memoize the evaluation result using the existing query mechanism.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
