Replaced `fail!` macro with `panic!` macro.

The `fail!` macro has been removed from the rust language, and was replaced by the `panic!` macro.