Skip to content

Commit 6b984df

Browse files
committed
core_float_math: strip feature gates from remaining doctests
1 parent 91d8a88 commit 6b984df

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

library/core/src/num/f32.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,6 @@ pub mod math {
17601760
/// # Examples
17611761
///
17621762
/// ```
1763-
/// #![feature(core_float_math)]
17641763
///
17651764
/// use core::f32;
17661765
///
@@ -1790,7 +1789,6 @@ pub mod math {
17901789
/// # Examples
17911790
///
17921791
/// ```
1793-
/// #![feature(core_float_math)]
17941792
///
17951793
/// use core::f32;
17961794
///
@@ -1819,7 +1817,6 @@ pub mod math {
18191817
/// # Examples
18201818
///
18211819
/// ```
1822-
/// #![feature(core_float_math)]
18231820
///
18241821
/// use core::f32;
18251822
///
@@ -1854,7 +1851,6 @@ pub mod math {
18541851
/// # Examples
18551852
///
18561853
/// ```
1857-
/// #![feature(core_float_math)]
18581854
///
18591855
/// use core::f32;
18601856
///
@@ -1886,7 +1882,6 @@ pub mod math {
18861882
/// # Examples
18871883
///
18881884
/// ```
1889-
/// #![feature(core_float_math)]
18901885
///
18911886
/// use core::f32;
18921887
///
@@ -1917,7 +1912,6 @@ pub mod math {
19171912
/// # Examples
19181913
///
19191914
/// ```
1920-
/// #![feature(core_float_math)]
19211915
///
19221916
/// use core::f32;
19231917
///
@@ -1948,7 +1942,6 @@ pub mod math {
19481942
///
19491943
/// ```
19501944
/// # #![allow(unused_features)]
1951-
/// #![feature(core_float_math)]
19521945
///
19531946
/// # // FIXME(#140515): mingw has an incorrect fma
19541947
/// # // https://sourceforge.net/p/mingw-w64/bugs/848/
@@ -1994,7 +1987,6 @@ pub mod math {
19941987
/// # Examples
19951988
///
19961989
/// ```
1997-
/// #![feature(core_float_math)]
19981990
///
19991991
/// use core::f32;
20001992
///
@@ -2026,7 +2018,6 @@ pub mod math {
20262018
/// # Examples
20272019
///
20282020
/// ```
2029-
/// #![feature(core_float_math)]
20302021
///
20312022
/// use core::f32;
20322023
///
@@ -2058,7 +2049,6 @@ pub mod math {
20582049
/// # Examples
20592050
///
20602051
/// ```
2061-
/// #![feature(core_float_math)]
20622052
///
20632053
/// use core::f32;
20642054
///
@@ -2085,7 +2075,6 @@ pub mod math {
20852075
/// # Examples
20862076
///
20872077
/// ```
2088-
/// #![feature(core_float_math)]
20892078
///
20902079
/// use core::f32;
20912080
///
@@ -2115,7 +2104,6 @@ pub mod math {
21152104
/// # Examples
21162105
///
21172106
/// ```
2118-
/// #![feature(core_float_math)]
21192107
///
21202108
/// use core::f32;
21212109
///
@@ -2162,7 +2150,6 @@ pub mod math {
21622150
/// # Examples
21632151
///
21642152
/// ```
2165-
/// #![feature(core_float_math)]
21662153
///
21672154
/// use core::f32;
21682155
///

library/core/src/num/f64.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,6 @@ pub mod math {
17401740
/// # Examples
17411741
///
17421742
/// ```
1743-
/// #![feature(core_float_math)]
17441743
///
17451744
/// use core::f64;
17461745
///
@@ -1770,7 +1769,6 @@ pub mod math {
17701769
/// # Examples
17711770
///
17721771
/// ```
1773-
/// #![feature(core_float_math)]
17741772
///
17751773
/// use core::f64;
17761774
///
@@ -1799,7 +1797,6 @@ pub mod math {
17991797
/// # Examples
18001798
///
18011799
/// ```
1802-
/// #![feature(core_float_math)]
18031800
///
18041801
/// use core::f64;
18051802
///
@@ -1834,7 +1831,6 @@ pub mod math {
18341831
/// # Examples
18351832
///
18361833
/// ```
1837-
/// #![feature(core_float_math)]
18381834
///
18391835
/// use core::f64;
18401836
///
@@ -1866,7 +1862,6 @@ pub mod math {
18661862
/// # Examples
18671863
///
18681864
/// ```
1869-
/// #![feature(core_float_math)]
18701865
///
18711866
/// use core::f64;
18721867
///
@@ -1897,7 +1892,6 @@ pub mod math {
18971892
/// # Examples
18981893
///
18991894
/// ```
1900-
/// #![feature(core_float_math)]
19011895
///
19021896
/// use core::f64;
19031897
///
@@ -1928,7 +1922,6 @@ pub mod math {
19281922
///
19291923
/// ```
19301924
/// # #![allow(unused_features)]
1931-
/// #![feature(core_float_math)]
19321925
///
19331926
/// # // FIXME(#140515): mingw has an incorrect fma
19341927
/// # // https://sourceforge.net/p/mingw-w64/bugs/848/
@@ -1974,7 +1967,6 @@ pub mod math {
19741967
/// # Examples
19751968
///
19761969
/// ```
1977-
/// #![feature(core_float_math)]
19781970
///
19791971
/// use core::f64;
19801972
///
@@ -2006,7 +1998,6 @@ pub mod math {
20061998
/// # Examples
20071999
///
20082000
/// ```
2009-
/// #![feature(core_float_math)]
20102001
///
20112002
/// use core::f64;
20122003
///
@@ -2038,7 +2029,6 @@ pub mod math {
20382029
/// # Examples
20392030
///
20402031
/// ```
2041-
/// #![feature(core_float_math)]
20422032
///
20432033
/// use core::f64;
20442034
///
@@ -2065,7 +2055,6 @@ pub mod math {
20652055
/// # Examples
20662056
///
20672057
/// ```
2068-
/// #![feature(core_float_math)]
20692058
///
20702059
/// use core::f64;
20712060
///
@@ -2095,7 +2084,6 @@ pub mod math {
20952084
/// # Examples
20962085
///
20972086
/// ```
2098-
/// #![feature(core_float_math)]
20992087
///
21002088
/// use core::f64;
21012089
///
@@ -2135,7 +2123,6 @@ pub mod math {
21352123
/// # Examples
21362124
///
21372125
/// ```
2138-
/// #![feature(core_float_math)]
21392126
///
21402127
/// use core::f64;
21412128
///

0 commit comments

Comments
 (0)