MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / has_lower_upper_exp_for_non_zero

Function has_lower_upper_exp_for_non_zero

build.rs:210–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210fn has_lower_upper_exp_for_non_zero() -> bool {
211 // LowerExp/UpperExp for NonZero* were added in Rust 1.84.
212 // <https://doc.rust-lang.org/stable/std/fmt/trait.LowerExp.html#impl-LowerExp-for-NonZero%3CT%3E>
213 can_compile("fn a(x: &core::num::NonZeroI32, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { core::fmt::LowerExp::fmt(x, f) }")
214}
215
216fn use_feature_or_nothing(feature: &str) {
217 if has_feature(feature) {

Callers 1

mainFunction · 0.85

Calls 1

can_compileFunction · 0.85

Tested by

no test coverage detected