replace_args
rustc_errors::diagnostic::Diagnostic
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.