about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 10:27:34 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 13:51:15 +0000
commit2b444672e10d1a019c194729b9e4800d39904459 (patch)
tree7ff447565fc8c7c9a3a673b974db6b6dc2686066 /compiler/rustc_codegen_ssa/src/back
parentcf9f53c83753e64d4e56fd188fa93ee8b49bf32b (diff)
downloadrust-2b444672e10d1a019c194729b9e4800d39904459.tar.gz
rust-2b444672e10d1a019c194729b9e4800d39904459.zip
Use a builder instead of boolean/option arguments
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
index 6c781c6f082..0bbb6c9c338 100644
--- a/compiler/rustc_codegen_ssa/src/back/write.rs
+++ b/compiler/rustc_codegen_ssa/src/back/write.rs
@@ -362,7 +362,7 @@ pub struct CodegenContext<B: WriteBackendMethods> {
 
 impl<B: WriteBackendMethods> CodegenContext<B> {
     pub fn create_diag_handler(&self) -> Handler {
-        Handler::with_emitter(true, None, Box::new(self.diag_emitter.clone()), None)
+        Handler::with_emitter(Box::new(self.diag_emitter.clone()))
     }
 
     pub fn config(&self, kind: ModuleKind) -> &ModuleConfig {