update source code to be compiled by latest rustc

fail! => panic!
SmallIntMap => VecMap
find => get
unused_varible => unused_variables
dead_assignment => unused_assignments
etc.