Skip to content

Make core::rt::rt_exchange_malloc's signature consistent with private::exchange_alloc::malloc's signature #4942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
catamorphism opened this issue Feb 15, 2013 · 2 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.

Comments

@catamorphism
Copy link
Contributor

As per XXX in core::rt

@yichoi
Copy link
Contributor

yichoi commented Jun 18, 2013

path has changed

libstd/unstable/lang.rs
pub unsafe fn exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {}

rt/rust_exchange_alloc.cpp
void *rust_exchange_alloc::malloc(size_t size)

@thestinger
Copy link
Contributor

The C++ exchange allocator is on the way out so this isn't necessary and can be closed.

Although, #7651 will bring the signature in line with C++ anyway.

bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
Autogenerate new lints

Add option in clippy_dev to automatically generate boilerplate code for adding new lints

example:

`./util/dev new_lint --name=iter_nth_zero --type=late`

Fixes rust-lang#4942

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

No branches or pull requests

3 participants