Skip to content
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

Rollup of PRs in the queue; Wednesday #22796

Merged
merged 62 commits into from
Feb 25, 2015
Merged

Conversation

Manishearth
Copy link
Member

No description provided.

aturon and others added 30 commits February 16, 2015 16:42
Rather than stabilize on the current API, we're going to punt this
concern to crates.io, to allow for faster iteration.

If you need this functionality, you might look at https://github.com/carllerche/syncbox

[breaking-change]
This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing rust-lang#22574 and wanted to ensure that we
had our story straight on these implementations.
This affects the `set_non_blocking` function which cannot fail for Unix or
Windows, given correct parameters. Additionally, the short UDP write error case
has been removed as there is no such thing as "short UDP writes", instead, the
operating system will error out if the application tries to send a packet
larger than the MTU of the network path.
If the filename for a path is `None` then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
`create_dir`.

Closes rust-lang#22737
Currently we have a `set_mode` mutator, so this just adds the pairing of a
`mode` accessor to read the value.

Closes rust-lang#22738
 Tests often use `vec![1, 2, 3]` instead of shorter and faster `[1, 2, 3]`.
This patch removes a lot of unnecessary `vec!`s. Hopefully, the tests will compile and run a bit faster.
 This affects the `set_non_blocking` function which cannot fail for Unix or
Windows, given correct parameters. Additionally, the short UDP write error case
has been removed as there is no such thing as \"short UDP writes\", instead, the
operating system will error out if the application tries to send a packet
larger than the MTU of the network path.
…hton

 This allows selectively disabling the lint for individual methods or traits.
…excrichton

 This commit has already been merged in rust-lang#21774,
but i think it has been accidently overriden by rust-lang#22584 and rust-lang#22480.
r? @alexcrichton
 I tried to follow [the style guide][1] as much as possible. This is just from some random readings of the code, so no guarantees on completeness, even in the edited files.

[1]: http://aturon.github.io/style/README.html
 Apply borrowck to fns that appear in const declarations.
Fixes rust-lang#22382.

r? @eddyb
Specifically, the following actions were taken:

* The `copy_memory` and `copy_nonoverlapping_memory` functions
  to drop the `_memory` suffix (as it's implied by the functionality). Both
  functions are now marked as `#[stable]`.
* The `set_memory` function was renamed to `write_bytes` and is now stable.
* The `zero_memory` function is now deprecated in favor of `write_bytes`
  directly.
* The `Unique` pointer type is now behind its own feature gate called `unique`
  to facilitate future stabilization.
* All type parameters now are `T: ?Sized` wherever possible and new clauses were
  added to the `offset` functions to require that the type is sized.

[breaking-change]
@bors
Copy link
Contributor

bors commented Feb 25, 2015

⚡ Previous build results are reusable. Rebuilding only auto-linux-32-nopt-t, auto-linux-64-nopt-t, auto-linux-64-opt, auto-linux-64-x-android-t, auto-mac-32-opt, auto-win-32-nopt-t, auto-win-32-opt...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-win-32-nopt-t

@Manishearth
Copy link
Member Author

@bors: retry

@Manishearth
Copy link
Member Author

@bors: force

1 similar comment
@Manishearth
Copy link
Member Author

@bors: force

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⚡ Previous build results are reusable. Rebuilding only auto-linux-32-nopt-t, auto-linux-64-nopt-t, auto-linux-64-opt, auto-linux-64-x-android-t, auto-mac-32-opt, auto-win-32-nopt-t, auto-win-32-opt...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-win-32-nopt-t

@Manishearth
Copy link
Member Author

@bors retry

@Manishearth
Copy link
Member Author

@bors: force

@Manishearth
Copy link
Member Author

@bors: force clean

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 357b41b with merge f7d562c...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-mac-64-opt

@alexcrichton
Copy link
Member

@bors: retry force

@bors
Copy link
Contributor

bors commented Feb 25, 2015

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-win-32-opt

@alexcrichton
Copy link
Member

@bors: retry force clean

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 357b41b with merge 72a5ee4...

@bors
Copy link
Contributor

bors commented Feb 25, 2015

💔 Test failed - auto-mac-32-opt

@Manishearth
Copy link
Member Author

@bors retry force clean

@bors
Copy link
Contributor

bors commented Feb 25, 2015

⌛ Testing commit 357b41b with merge 4db0b32...

@bors bors merged commit 357b41b into rust-lang:master Feb 25, 2015
@Manishearth Manishearth deleted the rollup branch February 25, 2015 23:11
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.