diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-05 12:41:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-05 12:41:42 +0100 |
| commit | 5d05c3f68a32c4214661a6807a5358865f54f0af (patch) | |
| tree | f4e0bf519113b9b2645175b7d8bde7b1c8bb4780 /macros/src | |
| parent | 90fb28b4b6146ca8eace35d33102cca202d5d544 (diff) | |
Refactor and fix style folding
Diffstat (limited to 'macros/src')
| -rw-r--r-- | macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index b2dee7c9..efaf8be8 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -148,7 +148,7 @@ fn process_const( if attr.path.is_ident("fold") { let func: syn::Expr = attr.parse_args()?; folder = Some(quote! { - const FOLDABLE: bool = true; + const FOLDING: bool = true; fn fold(inner: Self::Value, outer: Self::Value) -> Self::Value { let f: fn(Self::Value, Self::Value) -> Self::Value = #func; @@ -179,7 +179,7 @@ fn process_const( const NAME: &'static str = #name; - fn class_id() -> TypeId { + fn node_id() -> TypeId { TypeId::of::<#self_ty>() } |
