Rollup of 11 pull requests#37416
Closed
Manishearth wants to merge 28 commits intorust-lang:masterfrom
Closed
Conversation
Wire up cprng syscall as provider for rand::os::OsRng on Fuchsia.
This patch adds support for the aarch64-unknown-fuchsia target. Also updates src/liblibc submodule to include required libc change.
This avoids 800,000 heap allocations when compiling html5ever.
This avoids 800,000 heap allocations when compiling html5ever. It requires tweaking `SmallVector` a little.
This avoids 800,000 allocations when compiling html5ever.
Implement .fold() specifically for .map() and .cloned() so that any inner fold improvements are available through map and cloned.
Chain can do something interesting here where it passes on the fold into its inner iterators. The lets the underlying iterator's custom fold() be used, and skips the regular chain logic in next.
save_analysis: Dump data only if get_path_data doesn't fail to resolve a path. Solves rust-lang#37126 Dump data only if `get_path_data` doesn't fail to resolve a path. `get_path_data` returns `None` when it have to deals with `Def::Err`, which is used as placeholder for a failed resolution. Tell me if this is good enough, maybe I have to add some tests ? r? @nrc
Implement Iterator::fold for .chain(), .cloned(), .map() and the VecDeque iterators. Chain can do something interesting here where it passes on the fold into its inner iterators. The lets the underlying iterator's custom fold() be used, and skips the regular chain logic in next. Also implement .fold() specifically for .map() and .cloned() so that any inner fold improvements are available through map and cloned. The same way, a VecDeque iterator fold can be turned into two slice folds. These changes lend the power of the slice iterator's loop codegen to VecDeque, and to chains and flat maps of slice iterators, and so on. It's an improvement for .sum() and .product(), and other uses of fold.
run rustfmt on librustc_metadata folder
Support `use *;` and `use ::*;`. Fixes rust-lang#31484. r? @nrc
Avoid more allocations when compiling html5ever These three commits reduce the number of allocations performed when compiling html5ever from 13.2M to 10.8M, which speeds up compilation by about 2%. r? @nrc
Prohibit patterns in trait methods without bodies
They are not properly type checked
```rust
trait Tr {
fn f(&a: u8); // <- This compiles
}
```
, mostly rejected by the parser already and generally don't make much sense.
This PR is kind of a missing part of rust-lang#35015.
Needs crater run.
cc rust-lang#35078 (comment) rust-lang#35015 rust-lang/rfcs#1685 rust-lang#35203
r? @eddyb
…chton Add support for kernel randomness for Fuchsia Wire up cprng syscall as provider for rand::os::OsRng on Fuchsia.
…ichton Support for aarch64 architecture on Fuchsia This patch adds support for the aarch64-unknown-fuchsia target. Also updates src/liblibc submodule to include required libc change.
…-ptr, r=eddyb rustc_typeck: Allow reification from fn item to unsafe ptr See rust-lang/rfcs#1762. I've never contributed to the compiler internals before-- apologies if I'm not going about this the right way.
Broken links in Vec docs Fixed some issues with quote/bracket nesting and made quoting more consistent. r? @steveklabnik
…chton Print out the error when HeapFree failures do occur cc rust-lang#37395 I'd prefer to use `assert!` instead of `debug_assert!` if the cost is acceptable. r? @alexcrichton
Member
Author
|
@bors-servo r+ p=10 |
Collaborator
|
📌 Commit 366d139 has been approved by |
Contributor
|
(rust_highfive has picked a reviewer for you, use r? to override) |
Member
Author
|
@bors-servo r+ |
Collaborator
|
📌 Commit d230a7e has been approved by |
Member
Author
|
@bors r- oops not the right fix |
Member
Author
|
@bors r+ |
Collaborator
|
📌 Commit d230a7e has been approved by |
Collaborator
|
⌛ Testing commit d230a7e with merge 036bcb6... |
Collaborator
|
💔 Test failed - auto-win-msvc-64-cargotest |
bors
added a commit
to rust-lang/cargo
that referenced
this pull request
Oct 26, 2016
Fix rust-lang/rust#35203 warning/error rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here). cc rust-lang/rust#37378, rust-lang/rust#37416
Collaborator
|
☔ The latest upstream changes (presumably #37400) made this pull request unmergeable. Please resolve the merge conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
use *;anduse ::*;. #37367, Avoid more allocations when compiling html5ever #37373, Prohibit patterns in trait methods without bodies #37378, Add support for kernel randomness for Fuchsia #37385, Support for aarch64 architecture on Fuchsia #37387, rustc_typeck: Allow reification from fn item to unsafe ptr #37389, Broken links in Vec docs #37391, Print out the error when HeapFree failures do occur #37399