Rename DiagCtxt::with_emitter as DiagCtxt::new.

Because it's now the only constructor.
This commit is contained in:
Nicholas Nethercote 2024-02-29 11:50:32 +11:00
parent f9eef38e32
commit 880c1c585f
12 changed files with 20 additions and 20 deletions

View file

@ -373,7 +373,7 @@ pub struct CodegenContext<B: WriteBackendMethods> {
impl<B: WriteBackendMethods> CodegenContext<B> {
pub fn create_dcx(&self) -> DiagCtxt {
DiagCtxt::with_emitter(Box::new(self.diag_emitter.clone()))
DiagCtxt::new(Box::new(self.diag_emitter.clone()))
}
pub fn config(&self, kind: ModuleKind) -> &ModuleConfig {