We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 748941d commit c8a6933Copy full SHA for c8a6933
compiler/rustc_trait_selection/src/solve/alias_relate.rs
@@ -39,6 +39,12 @@ impl<'tcx> EvalCtxt<'_, InferCtxt<'tcx>> {
39
return Err(NoSolution);
40
}
41
42
+ if self.fast_reject_unnameable_rigid_term(param_env, lhs, rhs)
43
+ || self.fast_reject_unnameable_rigid_term(param_env, rhs, lhs)
44
+ {
45
+ return Err(NoSolution);
46
+ }
47
+
48
// Structurally normalize the lhs.
49
let lhs = if let Some(alias) = lhs.to_alias_term() {
50
let term = self.next_term_infer_of_kind(lhs);
0 commit comments