5555/// Run some code which generates an API. Add that API, or if
5656/// anything goes wrong, instead add a note of the problem in our
5757/// 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 > (
5959 in_apis : ApiVec < A > ,
6060 out_apis : & mut ApiVec < B > ,
6161 mut func_conversion : FF ,
@@ -64,7 +64,7 @@ pub(crate) fn convert_apis<FF, SF, EF, TF, A, B: 'static>(
6464 mut typedef_conversion : TF ,
6565) where
6666 A : AnalysisPhase ,
67- B : AnalysisPhase ,
67+ B : AnalysisPhase + ' static ,
6868 FF : FnMut (
6969 ApiName ,
7070 Box < FuncToConvert > ,
@@ -205,14 +205,11 @@ fn api_or_error<T: AnalysisPhase + 'static>(
205205/// a method). Add that API, or if
206206/// anything goes wrong, instead add a note of the problem in our
207207/// 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
213210 F : FnMut ( Api < A > ) -> Result < Box < dyn Iterator < Item = Api < B > > > , ConvertErrorFromCpp > ,
214211 A : AnalysisPhase ,
215- B : AnalysisPhase ,
212+ B : AnalysisPhase + ' static ,
216213{
217214 out_apis. extend ( in_apis. into_iter ( ) . flat_map ( |api| {
218215 let fullname = api. name_info ( ) . clone ( ) ;
0 commit comments