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

The `fail!` macro has been removed from the rust language.