mozilla/rust — Issue #1748: #[test] fns is not type checked when not testing
Author: nikomatsakis
Created: 2012-02-03 16:35:24+00:00
State: open

If you are not running --test, then #[test] functions are stripped out of the source. This is good, in one sense, but bad in another---the functions are not type checked! It is very easy for them to bitrot this way. I think they ought to stick around but not be translated; we can ensure that #[test] functions are not referenced from other functions in `check_fn_usage`, or whatever that pass is called.