更新代码并修改编译错误，让最新rustc编译通过

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