add `noreturn` attribute to functions returning !

Closes #9317
auto merge of #9491 : thestinger/rust/noreturn, r=huonw

Closes #9317