Skip to content

Commit ee64479

Browse files
committed
stupid issue :<
1 parent 0cb7e86 commit ee64479

File tree

1 file changed

+2
-6
lines changed
  • compiler/rustc_next_trait_solver/src/solve/eval_ctxt

1 file changed

+2
-6
lines changed

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,8 @@ where
360360
};
361361

362362
for &(key, ty) in &input.predefined_opaques_in_body.opaque_types {
363-
let prev = ecx.delegate.register_hidden_type_in_storage(key, ty, ecx.origin_span);
364-
assert_eq!(prev, None);
365-
}
366-
367-
if !ecx.nested_goals.is_empty() {
368-
panic!("prepopulating opaque types shouldn't add goals: {:?}", ecx.nested_goals);
363+
let _prev = ecx.delegate.register_hidden_type_in_storage(key, ty, ecx.origin_span);
364+
// assert_eq!(prev, None); // TODO yikes, needs test, at least it's not unsound
369365
}
370366

371367
let result = f(&mut ecx, input.goal);

0 commit comments

Comments
 (0)