File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,10 @@ Macros
326
326
327
327
In a declarative macro the ordering of the patterns will be the order that
328
328
they are matched against which can lead to unexpected behavior in the case
329
- where we have unique behavior intended for a particular expression.
329
+ where we have unique behavior intended for a particular expression. The concern
330
+ in particular is that while the ordering may be done correctly when the
331
+ macro match rules are written, it's possible in a refactor for them to
332
+ unintentionally be moved around in order.
330
333
331
334
If needing to specialize logic within the macro based on a particular
332
335
expression's value, it is better to not use a declarative macro with multiple rules.
You can’t perform that action at this time.
0 commit comments