mentioned items: also handle closure-to-fn-ptr coercions
This commit is contained in:
parent
347ca50bc8
commit
f1ec494c32
6 changed files with 99 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue