summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-12-30 13:20:26 +1300
committerBen Bridle <ben@derelict.engineering>2025-12-30 14:00:45 +1300
commit0de8aef53a2e9e86340bae3d051a1d5d8372ec99 (patch)
tree1a6b177c25e212bf6d687b23fd88e315c73b28d1 /src/lib.rs
parent29e847768ae5d6fe7e631c668d23536729dbe8d8 (diff)
downloadtorque-asm-0de8aef53a2e9e86340bae3d051a1d5d8372ec99.zip
Improve 'expected block token in macro definition' error message
When a macro definition body contains more than one token, every token must be a block token. When a non-block token is included in one of these macro definitions, an error points to the offending token and says that a block token was expected in this macro definition. The change that this commit makes is to also point to the top of the macro definition to make it clearer that this macro definition is part of the problem, not just the errant integer or list by itself. Without this, the error message could be read to say that the integer or list itself is a macro definition, which could be confusing.
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions