Always create parameters for functions-like types.
This commit is contained in:
parent
4b79b8bfa1
commit
32af719b07
20 changed files with 303 additions and 177 deletions
|
@ -722,8 +722,7 @@ pub enum LifetimeRes {
|
|||
/// Id of the introducing place. That can be:
|
||||
/// - an item's id, for the item's generic parameters;
|
||||
/// - a TraitRef's ref_id, identifying the `for<...>` binder;
|
||||
/// - a BareFn type's id;
|
||||
/// - a Path's id when this path has parenthesized generic args.
|
||||
/// - a BareFn type's id.
|
||||
///
|
||||
/// This information is used for impl-trait lifetime captures, to know when to or not to
|
||||
/// capture any given lifetime.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue