Home
last modified time | relevance | path

Searched refs:probe_constant (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/autocfg/src/
H A Dtests.rs129 fn probe_constant() { in probe_constant() functions
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()
H A Dlib.rs370 pub fn probe_constant(&self, expr: &str) -> bool { in probe_constant() functions
375 /// Emits the given `cfg` value if `probe_constant` returns true.
377 if self.probe_constant(expr) { in emit_constant_cfg()

Completed in 2 milliseconds