Skip to content

Commit a4b82ec

Browse files
committed
fix(ast): ignore dead code
1 parent 05217a1 commit a4b82ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ir/ast.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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")]
118119
pub 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)]
312314
pub 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)]
322325
pub 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

Comments
 (0)