Skip to content

Commit

Permalink
Declare builtin derives (#7127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Draggu authored Jan 21, 2025
1 parent e701208 commit d65802d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/cairo-lang-plugins/src/plugins/derive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ impl MacroPlugin for DerivePlugin {
fn declared_attributes(&self) -> Vec<String> {
vec![DERIVE_ATTR.to_string(), default::DEFAULT_ATTR.to_string()]
}

fn declared_derives(&self) -> Vec<String> {
vec![
"Copy".to_string(),
"Drop".to_string(),
"Clone".to_string(),
"Debug".to_string(),
"Default".to_string(),
"Destruct".to_string(),
"Hash".to_string(),
"PanicDestruct".to_string(),
"PartialEq".to_string(),
"Serde".to_string(),
]
}
}

/// Information on struct members or enum variants.
Expand Down

0 comments on commit d65802d

Please sign in to comment.