Stream: t-compiler/help

Topic: mir::Body impls Copy?

Paul Faria (Oct 25 2019 at 21:50, on Zulip):

What makes mir::Body impl ArenaAllocatable? I can see that in librustc/query/ ( that it's passed to fn alloc of , but I can only find impl <T: Copy> ArenaAllocatable for T {}, and Body isn't Copy. So where's the plumbing that makes this work???

simulacrum (Oct 25 2019 at 21:51, on Zulip):

@Paul Faria is I suspect the answer to your question

Paul Faria (Oct 25 2019 at 22:27, on Zulip):

That's exactly it. Thank you!

Last update: Sep 18 2020 at 20:30UTC