Skip to content

Commit fd4e006

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 0b22443 + a51f720 commit fd4e006

0 file changed

File tree

    0 commit comments

    Comments
     (0)