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 11 pull requests #37416

Closed
wants to merge 28 commits into from
Closed

Conversation

eulerdisk and others added 27 commits October 14, 2016 11:01
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
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
@Manishearth
Copy link
Member Author

@bors-servo r+ p=10

@bors
Copy link
Contributor

bors commented Oct 26, 2016

📌 Commit 366d139 has been approved by Manishearth

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@Manishearth
Copy link
Member Author

@bors-servo r+

@bors
Copy link
Contributor

bors commented Oct 26, 2016

📌 Commit d230a7e has been approved by Manishearth

@Manishearth
Copy link
Member Author

@bors r-

oops not the right fix

@Manishearth
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Oct 26, 2016

📌 Commit d230a7e has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Oct 26, 2016

⌛ Testing commit d230a7e with merge 036bcb6...

@bors
Copy link
Contributor

bors commented Oct 26, 2016

💔 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
@bors
Copy link
Contributor

bors commented Oct 30, 2016

☔ The latest upstream changes (presumably #37400) made this pull request unmergeable. Please resolve the merge conflicts.

@Centril Centril added the rollup A PR which is a rollup label Oct 24, 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.