mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 11:53:40 +00:00
core/std: Remove uses of ++ mode
from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425
This commit is contained in:
parent
31f8093037
commit
b0d1643fa6
2 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ fn breakpoint() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn frame_address(f: &fn(++x: *u8)) {
|
fn frame_address(f: &fn(x: *u8)) {
|
||||||
unsafe {
|
unsafe {
|
||||||
rusti::frame_address(f)
|
rusti::frame_address(f)
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ pub mod rustrt {
|
||||||
pub mod rusti {
|
pub mod rusti {
|
||||||
#[abi = "rust-intrinsic"]
|
#[abi = "rust-intrinsic"]
|
||||||
pub extern {
|
pub extern {
|
||||||
pub fn frame_address(f: &once fn(++x: *u8));
|
pub fn frame_address(f: &once fn(x: *u8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ fn to_tcp_err(&self) -> TcpErrData {
|
||||||
|
|
||||||
extern fn on_tcp_read_cb(stream: *uv::ll::uv_stream_t,
|
extern fn on_tcp_read_cb(stream: *uv::ll::uv_stream_t,
|
||||||
nread: libc::ssize_t,
|
nread: libc::ssize_t,
|
||||||
++buf: uv::ll::uv_buf_t) {
|
buf: uv::ll::uv_buf_t) {
|
||||||
unsafe {
|
unsafe {
|
||||||
debug!("entering on_tcp_read_cb stream: %? nread: %?",
|
debug!("entering on_tcp_read_cb stream: %? nread: %?",
|
||||||
stream, nread);
|
stream, nread);
|
||||||
|
|
Loading…
Reference in a new issue