On Mon, Jul 8, 2013 at 7:19 AM, Patrick Walton <[email protected]> wrote:
> On 7/8/13 4:14 AM, Corey Richardson wrote:
>>
>> Given a rustc::middle::resolve::CrateMap, a syntax::ast_map::map, and
>> a syntax::ast::Ty, how can I determine what "real" type the given
>> ast::Ty refers to?
>
>
> Typechecking uses the functions in `astconv.rs` (particularly
> `ast_ty_to_ty`) to transform an AST type into a type used for typechecking.
> I believe it writes the results into the type context, so you can retrieve
> it with `node_id_to_type` or similar.
>

I gather from the comments in middle/ty.rs that I'm going to have to run typeck?
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to