]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41942 - tommyip:master, r=Mark-Simulacrum
authorMark Simulacrum <mark.simulacrum@gmail.com>
Sat, 13 May 2017 00:57:37 +0000 (18:57 -0600)
committerGitHub <noreply@github.com>
Sat, 13 May 2017 00:57:37 +0000 (18:57 -0600)
Fix unexpected panic with the -Z treat-err-as-bug option

This fix an issue where the compiler panics even if there is no error when passed with the `-Z treat-err-as-bug` option.

Fixes #35886.

r? @Mark-Simulacrum

1  2 
src/librustc_errors/diagnostic_builder.rs