diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-10-06 18:03:34 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-10-06 18:03:34 +0800 |
commit | c4dad1cc97643c542b27dbd27f5cfdc62515586f (patch) | |
tree | 2ac6b0fa0e5283fdec0ffd950c90c51035692d97 /src/expand/mod.cpp | |
parent | 16bd8829c108000e0d52d76329b88ab9e6a34e12 (diff) | |
download | mrust-c4dad1cc97643c542b27dbd27f5cfdc62515586f.tar.gz |
Expand - Pass attributes on struct/union/enums to custom derive code
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r-- | src/expand/mod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index f19acda7..53358473 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -104,7 +104,7 @@ void Expand_Attrs(const ::AST::AttributeList& attrs, AttrStage stage, ::AST::Cr Expand_Attrs(attrs, stage, [&](const auto& sp, const auto& d, const auto& a){ if(!item.is_None()) { // TODO: Pass attributes _after_ this attribute - d.handle(sp, a, crate, path, mod, slice<const AST::Attribute>(&a, &attrs.m_items.back() - &a), item); + d.handle(sp, a, crate, path, mod, slice<const AST::Attribute>(&a, &attrs.m_items.back() - &a + 1), item); } }); } |