Stream: t-compiler/help

Topic: `needs_drop` before `resolve_type_vars_in_body`


ange (Apr 17 2019 at 12:07, on Zulip):

So, I want to see if a type needs drop in closure_analyze. Will calling ty.needs_drop work reliably at that point?

ange (Apr 17 2019 at 12:12, on Zulip):

Secondarily, it seems I need to lift the type to before using needs_drop like that, a la https://github.com/rust-lang/rust/blob/e4e032a0ae82d7db4f99872ff98626af2941c4a5/src/librustc_mir/hair/cx/mod.rs#L190 -- is it valid to use the global context at this point though?

Last update: Nov 11 2019 at 22:25UTC