disallowed-methods = [ { path = "f32::powi", reason = "use ops::FloatPow::squared, ops::FloatPow::cubed, or ops::powf instead for libm determinism" }, { path = "f32::log", reason = "use ops::ln, ops::log2, or ops::log10 instead for libm determinism" }, { path = "f32::abs_sub", reason = "deprecated and deeply confusing method" }, { path = "f32::powf", reason = "use ops::powf instead for libm determinism" }, { path = "f32::exp", reason = "use ops::exp instead for libm determinism" }, { path = "f32::exp2", reason = "use ops::exp2 instead for libm determinism" }, { path = "f32::ln", reason = "use ops::ln instead for libm determinism" }, { path = "f32::log2", reason = "use ops::log2 instead for libm determinism" }, { path = "f32::log10", reason = "use ops::log10 instead for libm determinism" }, { path = "f32::cbrt", reason = "use ops::cbrt instead for libm determinism" }, { path = "f32::hypot", reason = "use ops::hypot instead for libm determinism" }, { path = "f32::sin", reason = "use ops::sin instead for libm determinism" }, { path = "f32::cos", reason = "use ops::cos instead for libm determinism" }, { path = "f32::tan", reason = "use ops::tan instead for libm determinism" }, { path = "f32::asin", reason = "use ops::asin instead for libm determinism" }, { path = "f32::acos", reason = "use ops::acos instead for libm determinism" }, { path = "f32::atan", reason = "use ops::atan instead for libm determinism" }, { path = "f32::atan2", reason = "use ops::atan2 instead for libm determinism" }, { path = "f32::sin_cos", reason = "use ops::sin_cos instead for libm determinism" }, { path = "f32::exp_m1", reason = "use ops::exp_m1 instead for libm determinism" }, { path = "f32::ln_1p", reason = "use ops::ln_1p instead for libm determinism" }, { path = "f32::sinh", reason = "use ops::sinh instead for libm determinism" }, { path = "f32::cosh", reason = "use ops::cosh instead for libm determinism" }, { path = "f32::tanh", reason = "use ops::tanh instead for libm determinism" }, { path = "f32::asinh", reason = "use ops::asinh instead for libm determinism" }, { path = "f32::acosh", reason = "use ops::acosh instead for libm determinism" }, { path = "f32::atanh", reason = "use ops::atanh instead for libm determinism" }, # These methods have defined precision, but are only available from the standard library, # not in core. Using these substitutes allows for no_std compatibility. { path = "f32::rem_euclid", reason = "use ops::rem_euclid instead for no_std compatibility" }, { path = "f32::abs", reason = "use ops::abs instead for no_std compatibility" }, { path = "f32::sqrt", reason = "use ops::sqrt instead for no_std compatibility" }, { path = "f32::copysign", reason = "use ops::copysign instead for no_std compatibility" }, { path = "f32::round", reason = "use ops::round instead for no_std compatibility" }, { path = "f32::floor", reason = "use ops::floor instead for no_std compatibility" }, { path = "f32::fract", reason = "use ops::fract instead for no_std compatibility" }, ]