Stream: t-compiler/help

Topic: Where are type annotations stored?

Christian Poveda (May 30 2020 at 15:35, on Zulip):

When something like |x: usize| x + 1 gets compiled, where are the type annotations stored?

lcnr (May 30 2020 at 15:38, on Zulip):

If you have the def id of the closure, you can use tcx.typeck_tables_of(def_id)

Christian Poveda (May 30 2020 at 15:39, on Zulip):


Last update: Sep 28 2020 at 15:45UTC