File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
test/run-pass/specialization Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ impl<T: ?Sized> *const T {
220
220
/// ```
221
221
/// let s: &str = "Follow the rabbit";
222
222
/// let ptr: *const u8 = s.as_ptr();
223
- /// assert!(ptr.is_null() == false );
223
+ /// assert!(! ptr.is_null());
224
224
/// ```
225
225
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
226
226
#[ inline]
@@ -306,7 +306,7 @@ impl<T: ?Sized> *mut T {
306
306
/// ```
307
307
/// let mut s = [1, 2, 3];
308
308
/// let ptr: *mut u32 = s.as_mut_ptr();
309
- /// assert!(ptr.is_null() == false );
309
+ /// assert!(! ptr.is_null());
310
310
/// ```
311
311
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
312
312
#[ inline]
Original file line number Diff line number Diff line change @@ -1708,7 +1708,7 @@ mod tests {
1708
1708
let tmpdir = tmpdir ( ) ;
1709
1709
let dir = & tmpdir. join ( "fileinfo_false_on_dir" ) ;
1710
1710
check ! ( fs:: create_dir( dir) ) ;
1711
- assert ! ( dir. is_file( ) == false ) ;
1711
+ assert ! ( ! dir. is_file( ) ) ;
1712
1712
check ! ( fs:: remove_dir( dir) ) ;
1713
1713
}
1714
1714
Original file line number Diff line number Diff line change @@ -1509,7 +1509,7 @@ mod tests {
1509
1509
1510
1510
assert_eq ! ( filtered. len( ) , 1 ) ;
1511
1511
assert_eq ! ( filtered[ 0 ] . desc. name. to_string( ) , "1" ) ;
1512
- assert ! ( filtered[ 0 ] . desc. ignore == false ) ;
1512
+ assert ! ( ! filtered[ 0 ] . desc. ignore) ;
1513
1513
}
1514
1514
1515
1515
#[ test]
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ impl Foo for LocalOverride {
26
26
}
27
27
28
28
fn test_foo ( ) {
29
- assert ! ( 0i8 . foo( ) == false ) ;
30
- assert ! ( 0i32 . foo( ) == false ) ;
31
- assert ! ( 0i64 . foo( ) == true ) ;
29
+ assert ! ( ! 0i8 . foo( ) ) ;
30
+ assert ! ( ! 0i32 . foo( ) ) ;
31
+ assert ! ( 0i64 . foo( ) ) ;
32
32
33
- assert ! ( LocalDefault . foo( ) == false ) ;
34
- assert ! ( LocalOverride . foo( ) == true ) ;
33
+ assert ! ( ! LocalDefault . foo( ) ) ;
34
+ assert ! ( LocalOverride . foo( ) ) ;
35
35
}
36
36
37
37
fn test_bar ( ) {
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ impl Foo for i64 {
35
35
}
36
36
37
37
fn test_foo ( ) {
38
- assert ! ( 0i8 . foo( ) == false ) ;
39
- assert ! ( 0i32 . foo( ) == false ) ;
40
- assert ! ( 0i64 . foo( ) == true ) ;
38
+ assert ! ( ! 0i8 . foo( ) ) ;
39
+ assert ! ( ! 0i32 . foo( ) ) ;
40
+ assert ! ( 0i64 . foo( ) ) ;
41
41
}
42
42
43
43
// Next, test mixture of explicit `default` and provided methods:
You can’t perform that action at this time.
0 commit comments