for (_, local) in self.function.local_variables.iter() { self.types_used.insert(local.ty); iflet Some(init) = local.init { self.expressions_used.insert(init);
}
}
// Treat named expressions as alive, for the sake of our test suite, // which uses `let blah = expr;` to exercise lots of things.
for (&value, _name) in &self.function.named_expressions { self.expressions_used.insert(value);
}
self.trace_block(&self.function.body);
// Given that `trace_block` has marked the expressions used // directly by statements, walk the arena to find all // expressions used, directly or indirectly. self.as_expression().trace_expressions();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.