mark some functions as returning !

Closes #10023
auto merge of #10042 : thestinger/rust/fail, r=sanxiyn

Closes #10023