Skip to content

Commit b0d1643

Browse files
committed
core/std: Remove uses of ++ mode
from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425
1 parent 31f8093 commit b0d1643

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/libcore/stackwalk.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn breakpoint() {
8080
}
8181
}
8282

83-
fn frame_address(f: &fn(++x: *u8)) {
83+
fn frame_address(f: &fn(x: *u8)) {
8484
unsafe {
8585
rusti::frame_address(f)
8686
}
@@ -95,7 +95,7 @@ pub mod rustrt {
9595
pub mod rusti {
9696
#[abi = "rust-intrinsic"]
9797
pub extern {
98-
pub fn frame_address(f: &once fn(++x: *u8));
98+
pub fn frame_address(f: &once fn(x: *u8));
9999
}
100100
}
101101

Diff for: src/libstd/net_tcp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ impl ToTcpErr for uv::ll::uv_err_data {
12811281

12821282
extern fn on_tcp_read_cb(stream: *uv::ll::uv_stream_t,
12831283
nread: libc::ssize_t,
1284-
++buf: uv::ll::uv_buf_t) {
1284+
buf: uv::ll::uv_buf_t) {
12851285
unsafe {
12861286
debug!("entering on_tcp_read_cb stream: %? nread: %?",
12871287
stream, nread);

0 commit comments

Comments
 (0)