Skip to content

Commit 733d1dd

Browse files
committed
Remove do keyword from compiletests
1 parent 3dbc1c3 commit 733d1dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,10 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
317317
loop {
318318
//waiting 1 second for gdbserver start
319319
timer::sleep(1000);
320-
let result = do task::try {
320+
let result = task::try(proc() {
321321
tcp::TcpStream::connect(
322322
SocketAddr { ip: Ipv4Addr(127, 0, 0, 1), port: 5039 });
323-
};
323+
});
324324
if result.is_err() {
325325
continue;
326326
}

0 commit comments

Comments
 (0)