8bbd78075f
This change uses the same code for handling the "self" reference for classes as is already used for impls/ifaces. This allows removing the extra maybe_self_id argument (which was just for classes) to trans_closure that I added before. I also rewrote the translation for class ctors so that it doesn't generate new AST nodes (instead translating directly). Also changed visit so that it visits class ctors correctly with visit_fn, and changed typestate to not do return-checking when visiting a class ctor. |
||
---|---|---|
.. | ||
alt.rs | ||
base.rs | ||
build.rs | ||
closure.rs | ||
common.rs | ||
debuginfo.rs | ||
impl.rs | ||
native.rs | ||
reachable.rs | ||
shape.rs | ||
tvec.rs | ||
type_of.rs | ||
type_use.rs | ||
uniq.rs |