rust/compiler/rustc_middle/src/traits
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
..
chalk.rs Update Chalk 2021-02-02 12:37:22 -05:00
mod.rs Rollup merge of #82707 - BoxyUwU:errooaaar, r=oli-obk 2021-03-21 02:01:34 +01:00
query.rs Remove unused duplicated trivial_dropck_outlives 2020-09-04 22:24:03 +02:00
select.rs Add ptr::Pointee trait (for all types) and ptr::metadata function 2021-02-15 14:27:12 +01:00
specialization_graph.rs Enforce that query results implement Debug 2021-01-16 17:53:02 -05:00
structural_impls.rs Add ptr::Pointee trait (for all types) and ptr::metadata function 2021-02-15 14:27:12 +01:00