diff options
| author | bors <bors@rust-lang.org> | 2020-04-17 11:52:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-17 11:52:01 +0000 |
| commit | 8d67f576b56e8fc98a31123e5963f8d00e40611c (patch) | |
| tree | 41ca42929c30c4fe7da7021b9f4dc7355e7ffe47 /src/rustllvm/RustWrapper.cpp | |
| parent | b2c1a606feb1fbdb0ac0acba76f881ef172ed474 (diff) | |
| parent | 77f38dc284c3adab8c529e478fe8b2fa5e4a82d3 (diff) | |
| download | rust-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
