1
Fork 0

mentioned items: also handle closure-to-fn-ptr coercions

This commit is contained in:
Ralf Jung 2024-03-17 13:42:54 +01:00
parent 347ca50bc8
commit f1ec494c32
6 changed files with 99 additions and 1 deletions

View file

@ -324,7 +324,8 @@ pub enum MentionedItem<'tcx> {
source_ty: Ty<'tcx>,
target_ty: Ty<'tcx>,
},
// FIXME: do we have to add closures?
/// A closure that is coerced to a function pointer.
Closure(DefId, GenericArgsRef<'tcx>),
}
/// The lowered representation of a single function.