rust/compiler/rustc_middle
Dylan DPC 3a113f18f8
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`
2021-03-21 02:01:34 +01:00
..
benches
src Rollup merge of #82707 - BoxyUwU:errooaaar, r=oli-obk 2021-03-21 02:01:34 +01:00
Cargo.toml Update to rustc-rayon 0.3.1 2021-03-10 17:53:35 -08:00
README.md

For more information about how rustc works, see the rustc dev guide.