We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b611a3 commit 0b44108Copy full SHA for 0b44108
compiler/rustc_infer/src/infer/opaque_types/mod.rs
@@ -277,8 +277,7 @@ impl<'tcx> InferCtxt<'tcx> {
277
.eq(DefineOpaqueTypes::Yes, hidden_ty, actual)?
278
.obligations
279
.into_iter()
280
- // FIXME: Shuttling between obligations and goals is awkward.
281
- .map(Goal::from),
+ .map(|obligation| obligation.as_goal()),
282
);
283
}
284
mode @ (ty::TypingMode::PostBorrowckAnalysis { .. } | ty::TypingMode::PostAnalysis) => {
0 commit comments