about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-04-17 11:52:01 +0000
committerbors <bors@rust-lang.org>2020-04-17 11:52:01 +0000
commit8d67f576b56e8fc98a31123e5963f8d00e40611c (patch)
tree41ca42929c30c4fe7da7021b9f4dc7355e7ffe47 /src/rustllvm/RustWrapper.cpp
parentb2c1a606feb1fbdb0ac0acba76f881ef172ed474 (diff)
parent77f38dc284c3adab8c529e478fe8b2fa5e4a82d3 (diff)
downloadrust-8d67f576b56e8fc98a31123e5963f8d00e40611c.tar.gz
rust-8d67f576b56e8fc98a31123e5963f8d00e40611c.zip
Auto merge of #71049 - eddyb:const-err, r=oli-obk
Add `ConstKind::Error` and convert `ErrorHandled::Reported` to it.

By replicating the `ty::Error` approach to encoding "an error has occurred", all of the mechanisms that skip redundant/downstream errors are engaged and help out (see the reduction in test output).

This PR also adds `ErrorHandled::Linted` for the lint case because using `ErrorHandled::Reported` *without* having emitted an error that is *guaranteed* to stop compilation, is incorrect now.

r? @oli-obk cc @rust-lang/wg-const-eval @varkor @yodaldevoid
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions