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