Replaced all fail! macros with panic! macros for compatibility with https://github.com/rust-lang/rust/pull/17894
Merge pull request #125 from burtonageo/master

Replaced all fail! macros with panic! macros