allow stable features lint, fix link formatting warning, add ignore block to intrinsics macro documentation

This commit is contained in:
kirk 2023-06-17 14:07:45 +00:00
parent 2eeedaf25a
commit d3951c082e
3 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,7 @@
// to link due to the missing intrinsic (symbol).
#![allow(unused_features)]
#![allow(stable_features)] // bench_black_box feature is stable, leaving for backcompat
#![cfg_attr(thumb, no_main)]
#![deny(dead_code)]
#![feature(bench_black_box)]

View file

@ -3,7 +3,7 @@
/// These are hand-optimized bit twiddling code,
/// which unfortunately isn't the easiest kind of code to read.
///
/// The algorithm is explained here: https://blog.m-ou.se/floats/
/// The algorithm is explained here: <https://blog.m-ou.se/floats/>
mod int_to_float {
pub fn u32_to_f32_bits(i: u32) -> u32 {
if i == 0 {

View file

@ -33,7 +33,7 @@ macro_rules! public_test_dep {
///
/// This macro is structured to be invoked with a bunch of functions that looks
/// like:
///
/// ```ignore
/// intrinsics! {
/// pub extern "C" fn foo(a: i32) -> u32 {
/// // ...
@ -44,6 +44,7 @@ macro_rules! public_test_dep {
/// // ...
/// }
/// }
/// ```
///
/// Each function is defined in a manner that looks like a normal Rust function.
/// The macro then accepts a few nonstandard attributes that can decorate