Skip to content

Commit 8efc049

Browse files
committed
Manual adjustments
1 parent fafecca commit 8efc049

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

tests/pass/align_offset_symbolic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ fn test_align_to() {
6060
{
6161
#[repr(align(8))]
6262
struct Align8(u64);
63+
6364
let (l, m, r) = unsafe { s.align_to::<Align8>() }; // requested alignment higher than allocation alignment
6465
assert_eq!(l.len(), 4 * N);
6566
assert_eq!(r.len(), 0);

tests/pass/catch.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use std::panic::{catch_unwind, AssertUnwindSafe};
22

33
fn main() {
44
let mut i = 3;
5-
let _val = catch_unwind(AssertUnwindSafe(|| {
6-
i -= 2;
7-
}));
5+
let _val = catch_unwind(AssertUnwindSafe(|| i -= 2));
86
println!("{}", i);
97
}

tests/pass/closure-field-ty.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ fn main() {
33
let mut y = 0;
44
{
55
let mut box_maybe_closure = Box::new(None);
6-
*box_maybe_closure = Some(|| {
7-
y += 1;
8-
});
6+
*box_maybe_closure = Some(|| y += 1);
97
(box_maybe_closure.unwrap())();
108
}
119
assert_eq!(y, 1);

tests/pass/closures.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn main() {
118118
let x = 13;
119119
move || x
120120
})),
121-
13
121+
13,
122122
);
123123

124124
box_dyn();

0 commit comments

Comments
 (0)