Hey All, I have a rust program that generates rust source code, including function definitions.[1]
I don't yet have much in the way of type inference baked into my code, relying instead upon on compile time analysis provided by rustc. This works well, except for when dealing with the type of function arguments, which cannot be inferred (except via trait bounds[2]) at compile time. Is there a mechanism through which I can hand off an ast::Item object with a FnDecl's Vec<Arg> having TyInfer[3] and get it back with inferred type? Thanks! -- Ian [1] https://github.com/itdaniher/ratpak/blob/master/stage2.rs [2] currently exploring this, but looking for alternatives first [3] http://static.rust-lang.org/doc/master/syntax/ast/type.Ty_.html
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
