diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-03-08 09:42:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-08 09:42:13 +0100 |
| commit | 72d4c1ed67589aa1a2d28502b2e6453dd9467e8c (patch) | |
| tree | 11011114377f17d65af53dec4c52dcccbc586f18 /src/librustc_codegen_ssa | |
| parent | c51c90c8917caf0192ce8d76da72ada03891818b (diff) | |
| parent | 29716ef4f75e0d5cb11f788c2e449db4ea3989ef (diff) | |
| download | rust-72d4c1ed67589aa1a2d28502b2e6453dd9467e8c.tar.gz rust-72d4c1ed67589aa1a2d28502b2e6453dd9467e8c.zip | |
Rollup merge of #58984 - estebank:multi-treat-err-as-bug, r=oli-obk
Teach `-Z treat-err-as-bug` to take a number of errors to emit `-Z treat-err-as-bug` will cause `rustc` to panic after the first error is reported, like previously. `-Z treat-err-as-bug=2` will cause `rustc` to panic after 2 errors have been reported. Fix #58983.
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index 4bccc2a6d1f..c84b38cde81 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -247,7 +247,7 @@ pub struct CodegenContext<B: WriteBackendMethods> { impl<B: WriteBackendMethods> CodegenContext<B> { pub fn create_diag_handler(&self) -> Handler { - Handler::with_emitter(true, false, Box::new(self.diag_emitter.clone())) + Handler::with_emitter(true, None, Box::new(self.diag_emitter.clone())) } pub fn config(&self, kind: ModuleKind) -> &ModuleConfig { |
