Skip to content

Commit 0b863e0

Browse files
committed
not knowing about opaque types is worse than not knowing about regions, make sure we don't accidentally mark something as ok-modulo-regions if there are opaque types involved
1 parent 58c08cd commit 0b863e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/traits/select.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ pub enum SelectionCandidate<'tcx> {
174174
pub enum EvaluationResult {
175175
/// Evaluation successful.
176176
EvaluatedToOk,
177+
/// Evaluation successful, but there were unevaluated region obligations.
178+
EvaluatedToOkModuloRegions,
177179
/// Evaluation successful, but need to rerun because opaque types got
178180
/// hidden types assigned without it being known whether the opaque types
179181
/// are within their defining scope
180182
EvaluatedToOkModuloOpaqueTypes,
181-
/// Evaluation successful, but there were unevaluated region obligations.
182-
EvaluatedToOkModuloRegions,
183183
/// Evaluation is known to be ambiguous -- it *might* hold for some
184184
/// assignment of inference variables, but it might not.
185185
///

0 commit comments

Comments
 (0)