Skip to content

Commit 64f4b85

Browse files
committed
moved renamed formatted | cleanup-shortcircuit.rs
1 parent cfd6e21 commit 64f4b85

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/ui/cleanup-shortcircuit.rs renamed to tests/ui/lifetimes/rvalue-cleanup-shortcircuit.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
//@ run-pass
2-
// Test that cleanups for the RHS of shortcircuiting operators work.
1+
//! Test that cleanups for the RHS of shortcircuiting operators work.
32
3+
//@ run-pass
44

55
#![allow(deref_nullptr)]
66

7-
87
use std::env;
98

109
pub fn main() {
@@ -18,6 +17,8 @@ pub fn main() {
1817

1918
if args.len() >= 2 && args[1] == "signal" {
2019
// Raise a segfault.
21-
unsafe { *std::ptr::null_mut::<isize>() = 0; }
20+
unsafe {
21+
*std::ptr::null_mut::<isize>() = 0;
22+
}
2223
}
2324
}

0 commit comments

Comments
 (0)