Skip to content

Commit ea1e63c

Browse files
authored
Merge pull request rust-lang#529 from knickish/compile_warning_cleanup
2 parents ad821ba + fbfd328 commit ea1e63c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// to link due to the missing intrinsic (symbol).
55

66
#![allow(unused_features)]
7+
#![allow(stable_features)] // bench_black_box feature is stable, leaving for backcompat
78
#![cfg_attr(thumb, no_main)]
89
#![deny(dead_code)]
910
#![feature(bench_black_box)]

src/float/conv.rs

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

src/macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ macro_rules! public_test_dep {
3333
///
3434
/// This macro is structured to be invoked with a bunch of functions that looks
3535
/// like:
36-
///
36+
/// ```ignore
3737
/// intrinsics! {
3838
/// pub extern "C" fn foo(a: i32) -> u32 {
3939
/// // ...
@@ -44,6 +44,7 @@ macro_rules! public_test_dep {
4444
/// // ...
4545
/// }
4646
/// }
47+
/// ```
4748
///
4849
/// Each function is defined in a manner that looks like a normal Rust function.
4950
/// The macro then accepts a few nonstandard attributes that can decorate

0 commit comments

Comments
 (0)