]> git.lizzy.rs Git - rust.git/commit
Fix unexpected panic with the -Z treat-err-as-bug option
authorTommy Ip <hkmp7tommy@gmail.com>
Fri, 12 May 2017 11:48:18 +0000 (12:48 +0100)
committerTommy Ip <hkmp7tommy@gmail.com>
Fri, 12 May 2017 11:54:20 +0000 (12:54 +0100)
commit7a03b4c75ad985812467742faa8d76a14a4bf601
treec90911b950e7ceb01f00aba149974a9057c11453
parente19ccb71c8427135a69d874623af68422aeeb9e9
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.
src/librustc_errors/diagnostic_builder.rs