@@ -321,7 +321,7 @@ fn nonzero_trailing_zeros() {
321
321
}
322
322
323
323
#[ test]
324
- fn test_nonzero_isolate_most_significant_one ( ) {
324
+ fn test_nonzero_isolate_highest_one ( ) {
325
325
// Signed most significant one
326
326
macro_rules! nonzero_int_impl {
327
327
( $( $T: ty) ,+) => {
@@ -335,8 +335,8 @@ fn test_nonzero_isolate_most_significant_one() {
335
335
let mut i = 0 ;
336
336
while i < <$T>:: BITS {
337
337
assert_eq!(
338
- NonZero :: <$T>:: new( BITS >> i) . unwrap( ) . isolate_most_significant_one ( ) ,
339
- NonZero :: <$T>:: new( MOST_SIG_ONE >> i) . unwrap( ) . isolate_most_significant_one ( )
338
+ NonZero :: <$T>:: new( BITS >> i) . unwrap( ) . isolate_highest_one ( ) ,
339
+ NonZero :: <$T>:: new( MOST_SIG_ONE >> i) . unwrap( ) . isolate_highest_one ( )
340
340
) ;
341
341
i += 1 ;
342
342
}
@@ -356,8 +356,8 @@ fn test_nonzero_isolate_most_significant_one() {
356
356
let mut i = 0 ;
357
357
while i < <$T>:: BITS {
358
358
assert_eq!(
359
- NonZero :: <$T>:: new( BITS >> i) . unwrap( ) . isolate_most_significant_one ( ) ,
360
- NonZero :: <$T>:: new( MOST_SIG_ONE >> i) . unwrap( ) . isolate_most_significant_one ( ) ,
359
+ NonZero :: <$T>:: new( BITS >> i) . unwrap( ) . isolate_highest_one ( ) ,
360
+ NonZero :: <$T>:: new( MOST_SIG_ONE >> i) . unwrap( ) . isolate_highest_one ( ) ,
361
361
) ;
362
362
i += 1 ;
363
363
}
@@ -371,7 +371,7 @@ fn test_nonzero_isolate_most_significant_one() {
371
371
}
372
372
373
373
#[ test]
374
- fn test_nonzero_isolate_least_significant_one ( ) {
374
+ fn test_nonzero_isolate_lowest_one ( ) {
375
375
// Signed least significant one
376
376
macro_rules! nonzero_int_impl {
377
377
( $( $T: ty) ,+) => {
@@ -385,8 +385,8 @@ fn test_nonzero_isolate_least_significant_one() {
385
385
let mut i = 0 ;
386
386
while i < <$T>:: BITS {
387
387
assert_eq!(
388
- NonZero :: <$T>:: new( BITS << i) . unwrap( ) . isolate_least_significant_one ( ) ,
389
- NonZero :: <$T>:: new( LEAST_SIG_ONE << i) . unwrap( ) . isolate_least_significant_one ( )
388
+ NonZero :: <$T>:: new( BITS << i) . unwrap( ) . isolate_lowest_one ( ) ,
389
+ NonZero :: <$T>:: new( LEAST_SIG_ONE << i) . unwrap( ) . isolate_lowest_one ( )
390
390
) ;
391
391
i += 1 ;
392
392
}
@@ -406,8 +406,8 @@ fn test_nonzero_isolate_least_significant_one() {
406
406
let mut i = 0 ;
407
407
while i < <$T>:: BITS {
408
408
assert_eq!(
409
- NonZero :: <$T>:: new( BITS << i) . unwrap( ) . isolate_least_significant_one ( ) ,
410
- NonZero :: <$T>:: new( LEAST_SIG_ONE << i) . unwrap( ) . isolate_least_significant_one ( ) ,
409
+ NonZero :: <$T>:: new( BITS << i) . unwrap( ) . isolate_lowest_one ( ) ,
410
+ NonZero :: <$T>:: new( LEAST_SIG_ONE << i) . unwrap( ) . isolate_lowest_one ( ) ,
411
411
) ;
412
412
i += 1 ;
413
413
}
0 commit comments