We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cb7e86 commit dfa06a2Copy full SHA for dfa06a2
compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs
@@ -361,11 +361,7 @@ where
361
362
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);
+ // assert_eq!(prev, None); // TODO yikes, needs test, at least it's not unsound
369
}
370
371
let result = f(&mut ecx, input.goal);
0 commit comments