Home
last modified time | relevance | path

Searched refs:probe_constant (Results 1 – 3 of 3) sorted by relevance

/third_party/rust/crates/autocfg/src/
Dtests.rs129 fn probe_constant() { in probe_constant() function
131 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()
Dlib.rs370 pub fn probe_constant(&self, expr: &str) -> bool { in probe_constant() method
377 if self.probe_constant(expr) { in emit_constant_cfg()
/third_party/rust/crates/autocfg/
DREADME.md55 - Add `probe_constant` and `emit_constant_cfg` to test arbitrary constant expressions.