Skip to content

Commit

Permalink
allow stable features lint, fix link formatting warning, add ignore b…
Browse files Browse the repository at this point in the history
…lock to intrinsics macro documentation
  • Loading branch information
knickish committed Jun 17, 2023
1 parent 2dddfed commit 10b14cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/float/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/// // ...
Expand All @@ -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
Expand Down

0 comments on commit 10b14cb

Please sign in to comment.