rustc: remove unnecessary unsafe blocks/methods
syntax: remove unnecessary unsafe blocks/functions
test: remove unnecessary unsafe blocks/functions