librustc: Call return_type only for functions.