File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ macro_rules! int_impl {
108
108
/// Returns the number of leading zeros in the binary representation of `self`.
109
109
///
110
110
/// Depending on what you're doing with the value, you might also be interested in the
111
- #[ doc = concat!( "[`" , stringify!( $SelfTy) , "::ilog2()`]" ) ]
112
- /// function which returns a consistent number, even if the type widens.
111
+ /// [`ilog2`] function which returns a consistent number, even if the type widens.
113
112
///
114
113
/// # Examples
115
114
///
@@ -120,6 +119,7 @@ macro_rules! int_impl {
120
119
///
121
120
/// assert_eq!(n.leading_zeros(), 0);
122
121
/// ```
122
+ #[ doc = concat!( "[`ilog2`]: " , stringify!( $SelfT) , "::ilog2" ) ]
123
123
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
124
124
#[ rustc_const_stable( feature = "const_int_methods" , since = "1.32.0" ) ]
125
125
#[ must_use = "this returns the result of the operation, \
Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ macro_rules! uint_impl {
110
110
/// Returns the number of leading zeros in the binary representation of `self`.
111
111
///
112
112
/// Depending on what you're doing with the value, you might also be interested in the
113
- #[ doc = concat!( "[`" , stringify!( $SelfTy) , "::ilog2()`]" ) ]
114
- /// function which returns a consistent number, even if the type widens.
113
+ /// [`ilog2`] function which returns a consistent number, even if the type widens.
115
114
///
116
115
/// # Examples
117
116
///
@@ -122,6 +121,7 @@ macro_rules! uint_impl {
122
121
///
123
122
/// assert_eq!(n.leading_zeros(), 2);
124
123
/// ```
124
+ #[ doc = concat!( "[`ilog2`]: " , stringify!( $SelfT) , "::ilog2" ) ]
125
125
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
126
126
#[ rustc_const_stable( feature = "const_math" , since = "1.32.0" ) ]
127
127
#[ must_use = "this returns the result of the operation, \
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ unset GIT_DIR
12
12
ROOT_DIR=" $( git rev-parse --show-toplevel) "
13
13
COMMAND=" $ROOT_DIR /x.py test tidy"
14
14
15
-
16
- COMMAND=" python3.10 $COMMAND "
17
-
15
+ if [[ " $OSTYPE " == " msys" || " $OSTYPE " == " win32" ]]; then
16
+ COMMAND=" python $COMMAND "
17
+ elif ! command -v python & > /dev/null; then
18
+ COMMAND=" python3 $COMMAND "
19
+ fi
18
20
19
21
echo " Running pre-push script '$COMMAND '"
20
22
You can’t perform that action at this time.
0 commit comments