1
Fork 0

Use FnOnceOutput instead of FnOnce where expected

This commit is contained in:
Oli Scherer 2024-01-17 14:23:41 +00:00
parent 25b706cde3
commit d6b99b9c92
3 changed files with 100 additions and 1 deletions

View file

@ -1013,7 +1013,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
.extend(
// Group the return ty with its def id, if we had one.
entry.return_ty.map(|ty| {
(tcx.require_lang_item(LangItem::FnOnce, None), ty)
(tcx.require_lang_item(LangItem::FnOnceOutput, None), ty)
}),
);
}