Skip to content

Reduce a large amount of uv boilerplate #10256

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
wants to merge 4 commits into from

Conversation

alexcrichton
Copy link
Member

This removes a large number of the wrapper functions from libuv. Most of these only existed for weird linker purposes, but now that we're statically linking libuv to librustuv, we can use them all directly (as they were intended to be!

This also refactors a bit of uv handle initialization/management, purely to reduce the amount of code that's needed to look at.

Finally, this removes the home_for_io closure-based function, replacing it with an RAII-oriented function (fire_missiles!)

Using an raii wrapper means that there's no need for a '_self' variant and we
can greatly reduce the amount of 'self_'-named variables.
@pcwalton
Copy link
Contributor

pcwalton commented Nov 4, 2013

Does this remove some of the non-once ~fns?

@alexcrichton
Copy link
Member Author

Sadly no removal of ~fn() yet, this was just a lot of related cleanup that I wanted to do as well.

@pcwalton
Copy link
Contributor

pcwalton commented Nov 4, 2013

@bors: retry

@alexcrichton
Copy link
Member Author

I'm going to land this elsewhere.

@alexcrichton alexcrichton deleted the less-wrappers branch November 4, 2013 22:05
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 10, 2023
Fix version declared for semicolon_inside_block and semicolon_outside…

As per Issue rust-lang#10244, the lint were documentated
as being part of 1.66.0 but will actually be
released 1.68.0 .

changelog: [`semicolon_inside_block`]: Documentation fix
Fixes rust-lang#10244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants