We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71213fd commit 87599ddCopy full SHA for 87599dd
compiler/rustc_trait_selection/src/solve/alias_relate.rs
@@ -28,6 +28,7 @@ impl<'tcx> EvalCtxt<'_, InferCtxt<'tcx>> {
28
) -> QueryResult<'tcx> {
29
let tcx = self.tcx();
30
let Goal { param_env, predicate: (lhs, rhs, direction) } = goal;
31
+ debug_assert!(lhs.to_alias_term().is_some() || rhs.to_alias_term().is_some());
32
33
// Structurally normalize the lhs.
34
let lhs = if let Some(alias) = lhs.to_alias_term() {
0 commit comments