Skip to content

Commit 0cc573a

Browse files
committed
better variable names in tests
1 parent 4cae2c0 commit 0cc573a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/test/run-pass/arbitrary_self_types_raw_pointer_trait.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ fn main() {
4949
assert_eq!("I'm an i32!", null_i32.foo());
5050
assert_eq!("I'm a u32!", null_u32.foo());
5151

52-
let bar_i32 = 5i32;
53-
let bar_i32_thin = &bar_i32 as *const i32;
54-
assert_eq!("I'm an i32!", bar_i32_thin.foo());
55-
assert_eq!(5, unsafe { bar_i32_thin.bar() });
56-
assert_eq!(5, unsafe { (&bar_i32_thin as *const *const i32).complicated() });
57-
let bar_i32_fat = bar_i32_thin as *const Foo;
58-
assert_eq!("I'm an i32!", bar_i32_fat.foo());
59-
assert_eq!(5, unsafe { bar_i32_fat.bar() });
52+
let valid_i32 = 5i32;
53+
let valid_i32_thin = &valid_i32 as *const i32;
54+
assert_eq!("I'm an i32!", valid_i32_thin.foo());
55+
assert_eq!(5, unsafe { valid_i32_thin.bar() });
56+
assert_eq!(5, unsafe { (&valid_i32_thin as *const *const i32).complicated() });
57+
let valid_i32_fat = valid_i32_thin as *const Foo;
58+
assert_eq!("I'm an i32!", valid_i32_fat.foo());
59+
assert_eq!(5, unsafe { valid_i32_fat.bar() });
6060

61-
let bar_u32 = 18u32;
62-
let bar_u32_thin = &bar_u32 as *const u32;
63-
assert_eq!("I'm a u32!", bar_u32_thin.foo());
64-
assert_eq!(18, unsafe { bar_u32_thin.bar() });
65-
assert_eq!(18, unsafe { (&bar_u32_thin as *const *const u32).complicated() });
66-
let bar_u32_fat = bar_u32_thin as *const Foo;
67-
assert_eq!("I'm a u32!", bar_u32_fat.foo());
68-
assert_eq!(18, unsafe { bar_u32_fat.bar() });
61+
let valid_u32 = 18u32;
62+
let valid_u32_thin = &valid_u32 as *const u32;
63+
assert_eq!("I'm a u32!", valid_u32_thin.foo());
64+
assert_eq!(18, unsafe { valid_u32_thin.bar() });
65+
assert_eq!(18, unsafe { (&valid_u32_thin as *const *const u32).complicated() });
66+
let valid_u32_fat = valid_u32_thin as *const Foo;
67+
assert_eq!("I'm a u32!", valid_u32_fat.foo());
68+
assert_eq!(18, unsafe { valid_u32_fat.bar() });
6969

7070
}

0 commit comments

Comments
 (0)