diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-03-21 02:01:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-21 02:01:34 +0100 |
| commit | 3a113f18f8f2a9b99ae0212b5a27bd56a24655c3 (patch) | |
| tree | f75e0d066cefb294363bee1bf1d53542b4904eb7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 61edfd591cedff66fca639c02f66984f6271e5a6 (diff) | |
| parent | 8e353bb8eabc761d8fd800a985a859dd635adaa2 (diff) | |
| download | rust-3a113f18f8f2a9b99ae0212b5a27bd56a24655c3.tar.gz rust-3a113f18f8f2a9b99ae0212b5a27bd56a24655c3.zip | |
Rollup merge of #82707 - BoxyUwU:errooaaar, r=oli-obk
const_evaluatable_checked: Stop eagerly erroring in `is_const_evaluatable` Fixes #82279 We don't want to be emitting errors inside of is_const_evaluatable because we may call this during selection where it should be able to fail silently There were two errors being emitted in `is_const_evaluatable`. The one causing the compile error in #82279 was inside the match arm for `FailureKind::MentionsParam` but I moved the other error being emitted too since it made things cleaner imo The `NotConstEvaluatable` enum \*should\* have a fourth variant for when we fail to evaluate a concrete const, e.g. `0 - 1` but that cant happen until #81339 cc `@oli-obk` `@lcnr` r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
