summaryrefslogtreecommitdiff
path: root/src/macro_rules
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 11:28:26 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 11:28:26 +0800
commitada1ad7cd74dd65b035e388fa2a27a835131cf13 (patch)
tree22e7516178c07612e738eb9b14049d27e3475a98 /src/macro_rules
parent9bbe1c9900441f5c678e282ed5efb0b1b638d2c0 (diff)
downloadmrust-ada1ad7cd74dd65b035e388fa2a27a835131cf13.tar.gz
macro_rules - (minor) Remove todo comment
Diffstat (limited to 'src/macro_rules')
-rw-r--r--src/macro_rules/eval.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macro_rules/eval.cpp b/src/macro_rules/eval.cpp
index 9af766b6..ea918435 100644
--- a/src/macro_rules/eval.cpp
+++ b/src/macro_rules/eval.cpp
@@ -1052,8 +1052,8 @@ const MacroExpansionEnt* MacroExpandState::next_ent()
(Loop,
// 1. Get number of times this will repeat (based on the next iteration count)
unsigned int num_repeats = 0;
- // TODO: Have a flag for each of these that indicates if it's a definitive controller? (I.e. if zero, don't loop)
- for(const auto& var : e.variables) {
+ for(const auto& var : e.variables)
+ {
unsigned int this_repeats = m_mappings.count_in(m_iterations, var.first);
// If a variable doesn't have data and it's a required controller, don't loop
if( this_repeats == 0 && var.second ) {