]> git.lizzy.rs Git - rust.git/commit
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)
commitc17811cce3203c4b5a12aad93f190aaf9fdf7fc2
tree6d457b0de0423f25e182442a551d8f0e7dc0018f
parent6e29059c3ecb26d97ba2a34ff68081c11cc3d270
parent7a03b4c75ad985812467742faa8d76a14a4bf601
Rollup merge of #41942 - tommyip:master, r=Mark-Simulacrum

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
src/librustc_errors/diagnostic_builder.rs