DiagCtxt::with_emitter
DiagCtxt::new
Because it's now the only constructor.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.