Skip to content

Commit d63195b

Browse files
committed
Return type is bound too
1 parent 890cef6 commit d63195b

File tree

1 file changed

+6
-2
lines changed
  • src/librustc_traits/chalk

1 file changed

+6
-2
lines changed

src/librustc_traits/chalk/db.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,12 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
187187
.map(|t| t.subst(self.tcx, &bound_vars).lower_into(&self.interner))
188188
.collect();
189189

190-
let return_type =
191-
sig.output().skip_binder().subst(self.tcx, &bound_vars).lower_into(&self.interner);
190+
let return_type = sig
191+
.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);
192196

193197
let bound =
194198
chalk_solve::rust_ir::FnDefDatumBound { argument_types, where_clauses, return_type };

0 commit comments

Comments
 (0)