Searched refs:probe_constant (Results 1 – 3 of 3) sorted by relevance
129 fn probe_constant() { in probe_constant() function131 assert!(ac.probe_constant("1 + 2 + 3")); in probe_constant()132 ac.assert_min(1, 33, ac.probe_constant("{ let x = 1 + 2 + 3; x * x }")); in probe_constant()133 ac.assert_min(1, 39, ac.probe_constant(r#""test".len()"#)); in probe_constant()
370 pub fn probe_constant(&self, expr: &str) -> bool { in probe_constant() method377 if self.probe_constant(expr) { in emit_constant_cfg()
55 - Add `probe_constant` and `emit_constant_cfg` to test arbitrary constant expressions.