fail -> panic

Sorry I broke your code with rust-lang/rust#17894 ! Here's a fix :heart:

(this is a semi-automatic PR, so sorry if it's not perfect. Let me know and I'll fix any problems.)