@@ -27,20 +27,20 @@ pub trait WriteOrResolveContext<'bundle> {
2727 type Result ;
2828
2929 fn unescape ( & mut self , s : & ' bundle str ) -> Self :: Result ;
30- fn value < ' ast , ' args , ' errors , R , M > (
30+ fn value < ' other , R , M > (
3131 & mut self ,
32- scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
32+ scope : & Scope < ' bundle , ' other , R , M > ,
3333 value : Cow < FluentValue < ' bundle > > ,
3434 ) -> Self :: Result
3535 where
3636 R : Borrow < FluentResource > ,
3737 M : MemoizerKind ;
3838
3939 fn error < E : WriteOrResolve < ' bundle > > ( & mut self , exp : & E , is_ref : bool ) -> Self :: Result ;
40- fn resolve_pattern < ' ast , ' args , ' errors , R , M > (
40+ fn resolve_pattern < ' other , R , M > (
4141 & mut self ,
42- scope : & mut Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
43- pattern : & ' ast ast:: Pattern < & ' bundle str > ,
42+ scope : & mut Scope < ' bundle , ' other , R , M > ,
43+ pattern : & ' bundle ast:: Pattern < & ' bundle str > ,
4444 ) -> Self :: Result
4545 where
4646 R : Borrow < FluentResource > ,
5858 unescape_unicode ( self , s)
5959 }
6060
61- fn value < ' ast , ' args , ' errors , R , M > (
61+ fn value < ' other , R , M > (
6262 & mut self ,
63- scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
63+ scope : & Scope < ' bundle , ' other , R , M > ,
6464 value : Cow < FluentValue < ' bundle > > ,
6565 ) -> Self :: Result
6666 where
@@ -86,10 +86,10 @@ where
8686 Ok ( ( ) )
8787 }
8888
89- fn resolve_pattern < ' ast , ' args , ' errors , R , M > (
89+ fn resolve_pattern < ' other , R , M > (
9090 & mut self ,
91- scope : & mut Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
92- pattern : & ' ast ast:: Pattern < & ' bundle str > ,
91+ scope : & mut Scope < ' bundle , ' other , R , M > ,
92+ pattern : & ' bundle ast:: Pattern < & ' bundle str > ,
9393 ) -> Self :: Result
9494 where
9595 R : Borrow < FluentResource > ,
@@ -109,9 +109,9 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
109109 unescape_unicode_to_string ( s) . into ( )
110110 }
111111
112- fn value < ' ast , ' args , ' errors , R , M > (
112+ fn value < ' other , R , M > (
113113 & mut self ,
114- _scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
114+ _scope : & Scope < ' bundle , ' other , R , M > ,
115115 value : Cow < FluentValue < ' bundle > > ,
116116 ) -> Self :: Result
117117 where
@@ -125,10 +125,10 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
125125 FluentValue :: Error
126126 }
127127
128- fn resolve_pattern < ' ast , ' args , ' errors , R , M > (
128+ fn resolve_pattern < ' other , R , M > (
129129 & mut self ,
130- scope : & mut Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
131- pattern : & ' ast ast:: Pattern < & ' bundle str > ,
130+ scope : & mut Scope < ' bundle , ' other , R , M > ,
131+ pattern : & ' bundle ast:: Pattern < & ' bundle str > ,
132132 ) -> Self :: Result
133133 where
134134 R : Borrow < FluentResource > ,
@@ -139,9 +139,9 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
139139}
140140
141141pub trait WriteOrResolve < ' bundle > {
142- fn write_or_resolve < ' ast , ' args , ' errors , R , M , T > (
143- & ' ast self ,
144- scope : & mut Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
142+ fn write_or_resolve < ' other , R , M , T > (
143+ & ' bundle self ,
144+ scope : & mut Scope < ' bundle , ' other , R , M > ,
145145 context : & mut T ,
146146 ) -> T :: Result
147147 where
0 commit comments