@@ -27,20 +27,20 @@ pub trait WriteOrResolveContext<'bundle> {
27
27
type Result ;
28
28
29
29
fn unescape ( & mut self , s : & ' bundle str ) -> Self :: Result ;
30
- fn value < ' ast , ' args , ' errors , R , M > (
30
+ fn value < ' other , R , M > (
31
31
& mut self ,
32
- scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
32
+ scope : & Scope < ' bundle , ' other , R , M > ,
33
33
value : Cow < FluentValue < ' bundle > > ,
34
34
) -> Self :: Result
35
35
where
36
36
R : Borrow < FluentResource > ,
37
37
M : MemoizerKind ;
38
38
39
39
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 > (
41
41
& 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 > ,
44
44
) -> Self :: Result
45
45
where
46
46
R : Borrow < FluentResource > ,
58
58
unescape_unicode ( self , s)
59
59
}
60
60
61
- fn value < ' ast , ' args , ' errors , R , M > (
61
+ fn value < ' other , R , M > (
62
62
& mut self ,
63
- scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
63
+ scope : & Scope < ' bundle , ' other , R , M > ,
64
64
value : Cow < FluentValue < ' bundle > > ,
65
65
) -> Self :: Result
66
66
where
@@ -86,10 +86,10 @@ where
86
86
Ok ( ( ) )
87
87
}
88
88
89
- fn resolve_pattern < ' ast , ' args , ' errors , R , M > (
89
+ fn resolve_pattern < ' other , R , M > (
90
90
& 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 > ,
93
93
) -> Self :: Result
94
94
where
95
95
R : Borrow < FluentResource > ,
@@ -109,9 +109,9 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
109
109
unescape_unicode_to_string ( s) . into ( )
110
110
}
111
111
112
- fn value < ' ast , ' args , ' errors , R , M > (
112
+ fn value < ' other , R , M > (
113
113
& mut self ,
114
- _scope : & Scope < ' bundle , ' ast , ' args , ' errors , R , M > ,
114
+ _scope : & Scope < ' bundle , ' other , R , M > ,
115
115
value : Cow < FluentValue < ' bundle > > ,
116
116
) -> Self :: Result
117
117
where
@@ -125,10 +125,10 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
125
125
FluentValue :: Error
126
126
}
127
127
128
- fn resolve_pattern < ' ast , ' args , ' errors , R , M > (
128
+ fn resolve_pattern < ' other , R , M > (
129
129
& 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 > ,
132
132
) -> Self :: Result
133
133
where
134
134
R : Borrow < FluentResource > ,
@@ -139,9 +139,9 @@ impl<'bundle> WriteOrResolveContext<'bundle> for ResolveContext {
139
139
}
140
140
141
141
pub 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 > ,
145
145
context : & mut T ,
146
146
) -> T :: Result
147
147
where
0 commit comments