Skip to content

Rollup of 8 pull requests #77712

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 17 commits into from

Conversation

Dylan-DPC-zz
Copy link

Successful merges:

Failed merges:

r? @ghost

ssomers and others added 17 commits October 3, 2020 21:18
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
`DirEntry` contains a `ReadDir` handle, which used to just be a wrapper
on `Arc<InnerReadDir>`. Commit af75314 added `end_of_stream: bool`
which is not needed by `DirEntry`, but adds 8 bytes after padding. We
can let `DirEntry` have an `Arc<InnerReadDir>` directly to avoid that.
…t, r=Mark-Simulacrum

BTreeMap: comment why drain_filter's size_hint is somewhat pessimistic

The `size_hint` of the `DrainFilter` iterator doesn't adjust as you iterate. This hardly seems important to me, but there has been a comparable PR rust-lang#64383 in the past. I guess a scenario is that you first iterate half the map manually and keep most of the key/value pairs in the map, and then tell the predicate to drain most of the key/value pairs and `.collect` the iterator over the remaining half of the map.

I am totally ambivalent whether this is better or not.

r? @Mark-Simulacrum
suggest `MAX` constant if -1 is assigned to unsigned type

Fixes rust-lang#76413.
Fixes rust-lang#77416.
(docs): make mutex error comment consistent with codebase

Although exceptionally minor, I found this stands out from other error reporting language used in doc comments. With the existence of the `failure` crate, I suppose this could be slightly ambiguous. In any case, this change brings the particular comment into a consistent state with other mentions of returning errors.
…-object-safe, r=Aaron1011

Add compile fail test for issue 27675

A recently merged PR (rust-lang#73905) strengthened the checks on bounds of associated items. This rejects the attack path of rust-lang#27675 which consisted of constructing a `dyn Trait<Item=T>` where `T` would not fulfill the bounds required on `Item` of the `Trait` behind the dyn object.

This regression test, extracted from [the weaponized instance](rust-lang#27675 (comment)), checks that this is rejected.
Remove unnecessary lamda on emitter map.
unix/vxworks: make DirEntry slightly smaller

`DirEntry` contains a `ReadDir` handle, which used to just be a wrapper
on `Arc<InnerReadDir>`. Commit af75314 added `end_of_stream: bool`
which is not needed by `DirEntry`, but adds 8 bytes after padding. We
can let `DirEntry` have an `Arc<InnerReadDir>` directly to avoid that.
…crum

Make `max_log_info` easily greppable (for figuring out why debug logging is disabled)

Follow-up to rust-lang#77678 (comment). I'll make a PR to the dev-guide shortly changing `debug = true` to `debug-logging = true` and using this text.

Ideally wouldn't be merged before rust-lang#77678, but it practice it won't hurt anything.

r? @Mark-Simulacrum
@Dylan-DPC-zz
Copy link
Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Oct 8, 2020

📌 Commit 4b99066 has been approved by Dylan-DPC

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 8, 2020
@bors
Copy link
Collaborator

bors commented Oct 8, 2020

⌛ Testing commit 4b99066 with merge f26192a2b065ce753fb42c88a2f41c6ef32a5d0f...

@bors
Copy link
Collaborator

bors commented Oct 8, 2020

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 8, 2020
@Dylan-DPC-zz Dylan-DPC-zz deleted the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz restored the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz deleted the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz restored the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz deleted the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz restored the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz deleted the rollup-5k2bx6c branch October 9, 2020 00:31
@Dylan-DPC-zz Dylan-DPC-zz restored the rollup-5k2bx6c branch October 9, 2020 00:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.