@@ -115,6 +115,7 @@ pub enum AstType {
115115
116116/// An annotation attached to an item.
117117#[ derive( Clone , Debug ) ]
118+ #[ expect( dead_code, reason = "annotations not used yet" ) ]
118119pub struct Annotation {
119120 /// Key of the annotation.
120121 pub key : StringId ,
@@ -133,6 +134,7 @@ mod function {
133134 }
134135
135136 #[ derive( Clone , Debug ) ]
137+ #[ expect( dead_code, reason = "annotations not used yet" ) ]
136138 pub struct FunctionDeclaration {
137139 pub annotations : Vec < AnnotationId > ,
138140 pub signature : FunctionSignature ,
@@ -311,6 +313,7 @@ mod expression {
311313#[ derive( Clone , Debug ) ]
312314pub struct Trait {
313315 /// Annotations attached to this trait.
316+ #[ expect( dead_code, reason = "annotations not used yet" ) ]
314317 pub annotations : Vec < AnnotationId > ,
315318 /// Original name of the trait.
316319 pub name : StringId ,
@@ -321,6 +324,7 @@ pub struct Trait {
321324#[ derive( Clone , Debug ) ]
322325pub struct TraitImplementation {
323326 /// Annotations attached to this trait implementation.
327+ #[ expect( dead_code, reason = "annotations not used yet" ) ]
324328 pub annotations : Vec < AnnotationId > ,
325329 pub trait_name : StringId ,
326330 pub target_ty : AstTypeId ,
0 commit comments