As far as I know rust has dead code elimination. Is the problem that compilation takes longer?