@@ -85,7 +85,7 @@ pub(crate) trait AttributeParser<S: Stage>: Default + 'static {
8585 /// that'd be equivalent to unconditionally applying an attribute to
8686 /// every single syntax item that could have attributes applied to it.
8787 /// Your accept mappings should determine whether this returns something.
88- fn finalize ( self , cx : & FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > ;
88+ fn finalize ( self , cx : & mut FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > ;
8989}
9090
9191/// Alternative to [`AttributeParser`] that automatically handles state management.
@@ -161,7 +161,7 @@ impl<T: SingleAttributeParser<S>, S: Stage> AttributeParser<S> for Single<T, S>
161161 } ,
162162 ) ] ;
163163
164- fn finalize ( self , _cx : & FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > {
164+ fn finalize ( self , _cx : & mut FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > {
165165 Some ( self . 1 ?. 0 )
166166 }
167167}
@@ -331,7 +331,7 @@ impl<T: CombineAttributeParser<S>, S: Stage> AttributeParser<S> for Combine<T, S
331331 } ,
332332 ) ] ;
333333
334- fn finalize ( self , _cx : & FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > {
334+ fn finalize ( self , _cx : & mut FinalizeContext < ' _ , ' _ , S > ) -> Option < AttributeKind > {
335335 if let Some ( first_span) = self . first_span {
336336 Some ( T :: CONVERT ( self . items , first_span) )
337337 } else {
0 commit comments