Skip to content

Commit 0dca92e

Browse files
Rollup merge of #154944 - zetanumbers:refactor_arena_cache_queries, r=jackh726
Small refactor of `arena_cache` query values Query modifier `arena_cache` automatically allocates only `Some` variant of query's value of type `Option<&'tcx T>`, so `mir_callgraph_cyclic` should've been doing it from the beginning. The same could be said for any `Result<&'tcx T, ErrorGuaranteed>` as `ErrorGuaranteed` is a zero sized type, but that requires adding a new `ArenaCached` implementation.
2 parents a3f51e0 + 1b94472 commit 0dca92e

0 file changed

File tree

    0 commit comments

    Comments
     (0)