File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
- stable
13
13
- beta
14
14
- nightly
15
- - 1.41 .0
15
+ - 1.60 .0
16
16
steps :
17
17
- name : checkout
18
18
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ impl Not for Choice {
219
219
/// Note: Rust's notion of "volatile" is subject to change over time. While this
220
220
/// code may break in a non-destructive way in the future, “constant-time” code
221
221
/// is a continually moving target, and this is better than doing nothing.
222
+ #[ cfg( not( feature = "core_hint_black_box" ) ) ]
222
223
#[ inline( never) ]
223
224
fn black_box < T : Copy > ( input : T ) -> T {
224
225
unsafe {
@@ -996,7 +997,7 @@ impl<T: Copy> BlackBox<T> {
996
997
/// Constructs a new instance of `BlackBox` which will wrap the specified value.
997
998
///
998
999
/// All access to the inner value will be mediated by a `black_box` optimization barrier.
999
- pub const fn new ( value : T ) -> Self {
1000
+ pub fn new ( value : T ) -> Self {
1000
1001
Self ( value)
1001
1002
}
1002
1003
You can’t perform that action at this time.
0 commit comments