They have the same signature, and the former just calls the latter.
DiagCtxt::with_emitter
DiagCtxt::new