We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 890cef6 commit d63195bCopy full SHA for d63195b
src/librustc_traits/chalk/db.rs
@@ -187,8 +187,12 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
187
.map(|t| t.subst(self.tcx, &bound_vars).lower_into(&self.interner))
188
.collect();
189
190
- let return_type =
191
- sig.output().skip_binder().subst(self.tcx, &bound_vars).lower_into(&self.interner);
+ let return_type = sig
+ .output()
192
+ .no_bound_vars()
193
+ .expect("FIXME(chalk): late-bound fn parameters not supported in chalk")
194
+ .subst(self.tcx, &bound_vars)
195
+ .lower_into(&self.interner);
196
197
let bound =
198
chalk_solve::rust_ir::FnDefDatumBound { argument_types, where_clauses, return_type };
0 commit comments