Avoiding unnecesary allocations at rustc_errors Simplify the code avoiding allocations with easy alternative