55
55
/// Run some code which generates an API. Add that API, or if
56
56
/// anything goes wrong, instead add a note of the problem in our
57
57
/// output API such that users will see documentation for the problem.
58
- pub ( crate ) fn convert_apis < FF , SF , EF , TF , A , B : ' static > (
58
+ pub ( crate ) fn convert_apis < FF , SF , EF , TF , A , B > (
59
59
in_apis : ApiVec < A > ,
60
60
out_apis : & mut ApiVec < B > ,
61
61
mut func_conversion : FF ,
@@ -64,7 +64,7 @@ pub(crate) fn convert_apis<FF, SF, EF, TF, A, B: 'static>(
64
64
mut typedef_conversion : TF ,
65
65
) where
66
66
A : AnalysisPhase ,
67
- B : AnalysisPhase ,
67
+ B : AnalysisPhase + ' static ,
68
68
FF : FnMut (
69
69
ApiName ,
70
70
Box < FuncToConvert > ,
@@ -205,14 +205,11 @@ fn api_or_error<T: AnalysisPhase + 'static>(
205
205
/// a method). Add that API, or if
206
206
/// anything goes wrong, instead add a note of the problem in our
207
207
/// output API such that users will see documentation for the problem.
208
- pub ( crate ) fn convert_item_apis < F , A , B : ' static > (
209
- in_apis : ApiVec < A > ,
210
- out_apis : & mut ApiVec < B > ,
211
- mut fun : F ,
212
- ) where
208
+ pub ( crate ) fn convert_item_apis < F , A , B > ( in_apis : ApiVec < A > , out_apis : & mut ApiVec < B > , mut fun : F )
209
+ where
213
210
F : FnMut ( Api < A > ) -> Result < Box < dyn Iterator < Item = Api < B > > > , ConvertErrorFromCpp > ,
214
211
A : AnalysisPhase ,
215
- B : AnalysisPhase ,
212
+ B : AnalysisPhase + ' static ,
216
213
{
217
214
out_apis. extend ( in_apis. into_iter ( ) . flat_map ( |api| {
218
215
let fullname = api. name_info ( ) . clone ( ) ;
0 commit comments