File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
// to link due to the missing intrinsic (symbol).
5
5
6
6
#![ allow( unused_features) ]
7
+ #![ allow( stable_features) ] // bench_black_box feature is stable, leaving for backcompat
7
8
#![ cfg_attr( thumb, no_main) ]
8
9
#![ deny( dead_code) ]
9
10
#![ feature( bench_black_box) ]
Original file line number Diff line number Diff line change 3
3
/// These are hand-optimized bit twiddling code,
4
4
/// which unfortunately isn't the easiest kind of code to read.
5
5
///
6
- /// The algorithm is explained here: https://blog.m-ou.se/floats/
6
+ /// The algorithm is explained here: < https://blog.m-ou.se/floats/>
7
7
mod int_to_float {
8
8
pub fn u32_to_f32_bits ( i : u32 ) -> u32 {
9
9
if i == 0 {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ macro_rules! public_test_dep {
33
33
///
34
34
/// This macro is structured to be invoked with a bunch of functions that looks
35
35
/// like:
36
- ///
36
+ /// ```ignore
37
37
/// intrinsics! {
38
38
/// pub extern "C" fn foo(a: i32) -> u32 {
39
39
/// // ...
@@ -44,6 +44,7 @@ macro_rules! public_test_dep {
44
44
/// // ...
45
45
/// }
46
46
/// }
47
+ /// ```
47
48
///
48
49
/// Each function is defined in a manner that looks like a normal Rust function.
49
50
/// The macro then accepts a few nonstandard attributes that can decorate
You can’t perform that action at this time.
0 commit comments