Hello,

I'm working on resolving a type for rustdoc-ng, but I'm confused by
how it works in the compiler.

It seems the important data structures here are ast::Ty and ast::ty_,
but I don't quite understand exactly what each of them are, especially
as they form a recursive data structure. I also don't know what the
variants of ty_ are. It seems ty_path is for structs/enums, and the
rest is either pointers to, vectors of, tuples containing, or closures
using a ty_path, but I'm not sure about this.

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?
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to