File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,15 @@ pub struct FnDefInputsAndOutputDatum<I: Interner> {
145
145
/// the function definition's type signature and where clauses.
146
146
pub struct FnDefDatumBound < I : Interner > {
147
147
/// Inputs and outputs defined on a function
148
+ /// These are needed for late-bound regions in rustc. For example the
149
+ /// lifetime `'a` in
150
+ /// ```ignore
151
+ /// fn foo<'a, T>(&'a T);
152
+ /// ^^
153
+ /// ```
154
+ /// Rustc doesn't pass in late-bound the regions in substs, but the inputs
155
+ /// and outputs may use them. `where_clauses` don't need an extra set of
156
+ /// `Binders`, since any lifetimes found in where clauses are not late-bound.
148
157
pub inputs_and_output : Binders < FnDefInputsAndOutputDatum < I > > ,
149
158
150
159
/// Where clauses defined on the function
You can’t perform that action at this time.
0 commit comments