rust/src/rustc/middle
Tim Chevalier 97bcb20244 Avoid some duplicated typechecking work
There was a FIXME noting that ty::enum_variants and typeck::check::
check_enum_variants both call eval_const_expr. I tried refactoring the
code so that check_enum_variants does all the work and enum_variants
just looks up cached results, but this turned out not to be easy because
several ty functions call enum_variants and it might get invoked on an
enum before that enum item has been typechecked. Instead, I just made
check_enum_variants update the enum_var_cache so that enum_variants
will never call eval_const_expr twice on the same const.
2012-06-14 16:21:53 -07:00
..
borrowck Box AST idents 2012-06-13 11:30:45 -07:00
trans Add zero check/fail paths on div/mod paths. Close #944. 2012-06-14 15:39:24 -07:00
tstate Box AST idents 2012-06-13 11:30:45 -07:00
typeck Avoid some duplicated typechecking work 2012-06-14 16:21:53 -07:00
astencode.rs Box AST idents 2012-06-13 11:30:45 -07:00
block_use.rs Fix an error message to not refer to "block type". Closes #2423. 2012-05-29 12:18:59 -07:00
borrowck.rs Box AST idents 2012-06-13 11:30:45 -07:00
capture.rs Box AST idents 2012-06-13 11:30:45 -07:00
check_alt.rs Box AST idents 2012-06-13 11:30:45 -07:00
check_const.rs Comments only: annotate FIXMEs 2012-06-07 13:49:01 -07:00
check_loop.rs Remove be keyword. 2012-05-15 10:41:14 -07:00
const_eval.rs Box AST idents 2012-06-13 11:30:45 -07:00
freevars.rs new cap clause syntax 2012-05-04 12:33:08 -07:00
kind.rs Make "no implicit copies" diagnostics controllable through lint settings. Closes #2503. 2012-06-04 20:44:58 -07:00
lint.rs Box AST idents 2012-06-13 11:30:45 -07:00
liveness.rs Box AST idents 2012-06-13 11:30:45 -07:00
pat_util.rs Box AST idents 2012-06-13 11:30:45 -07:00
region.rs Typo fixes in comments. 2012-05-24 16:48:44 -07:00
resolve.rs Box AST idents 2012-06-13 11:30:45 -07:00
ty.rs Avoid some duplicated typechecking work 2012-06-14 16:21:53 -07:00
typeck.rs Annotate and fix FIXMEs in typeck 2012-06-14 12:04:05 -07:00