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 12 pull requests #59478

Merged
merged 37 commits into from
Mar 28, 2019
Merged

Rollup of 12 pull requests #59478

merged 37 commits into from
Mar 28, 2019

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Mar 28, 2019

Successful merges:

Failed merges:

r? @ghost

varkor and others added 30 commits March 13, 2019 23:46
When the parser has to recover from malformed code in a pattern, do not
complain about missing fields.
A convenience method like fs::copy() should try to prevent pitfalls a
normal user doesn't think about.

In case of an empty umask, setting the file mode early prevents
temporarily world readable or even writeable files,
because the default mode is 0o666.

In case the target is a named pipe or special device node, setting the
file mode can lead to unwanted side effects, like setting permissons on
`/dev/stdout` or for root setting permissions on `/dev/null`.

copy_file_range() returns EINVAL, if the destination is a FIFO/pipe or
a device like "/dev/null", so fallback to io::copy, too.

Use `fcopyfile` on MacOS instead of `copyfile`.

Fixes: rust-lang#26933
Fixed: rust-lang#37885
…tor, r=eddyb

Refactor generic parameter encoder functions

Addresses rust-lang#58503 (comment).

r? @eddyb
fs::copy() unix: set file mode early

A convenience method like fs::copy() should try to prevent pitfalls a
normal user doesn't think about.

In case of an empty umask, setting the file mode early prevents
temporarily world readable or even writeable files,
because the default mode is 0o666.

In case the target is a named pipe or special device node, setting the
file mode can lead to unwanted side effects, like setting permissons on
`/dev/stdout` or for root setting permissions on `/dev/null`.

copy_file_range() returns EINVAL, if the destination is a FIFO/pipe or
a device like "/dev/null", so fallback to io::copy, too.

Fixes: rust-lang#26933
Fixed: rust-lang#37885
…Mark-Simulacrum,ollie27

Prevent cache issues on version updates

Fixes rust-lang#58827.

cc @rust-lang/infra
…davis

Do not complain about unmentioned fields in recovered patterns

When the parser has to recover from malformed code in a pattern, do not
complain about missing fields.

Fix rust-lang#59145.
Centril added 7 commits March 28, 2019 08:43
Include llvm-ar with llvm-tools component

Adds the `llvm-ar` tool to the `llvm-tools` component. This is useful for [building and linking native code](https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-building-some-native-code) in cargo build scripts without needing to use the platform specific `ar`. According to rust-lang#58663 it is also useful for WASM.

 `llvm-ar` is very small (~82KB), so it does not significantly increase the size of the `llvm-tools` component.

Fixes rust-lang#58663
Remove the block on natvis for lld-link.

Since rust-lang#56642 bumped minimum LLVM version to 6.0.0, Rust should be able to honor or ignore Windows natvis support with lld-link.

It looks like  llvm-mirror/lld@9133ca57b was in LLVM 7.0, while llvm-mirror/lld@27b9c4285 made it into 6.0, at least if the release branches are anything to go by.

Fixes rust-lang#59383.
Use consistent phrasing for all macro summaries

None
…r-ranked-trait-bounds, r=Centril

Add documentation about `for` used as higher ranked trait bounds

Resolves rust-lang#55416
…scards, r=Centril

Document that `std::io::BufReader` discards contents on drop

Resolves rust-lang#55546
…ization, r=Centril

Fix link capitalization in documentation of std::io::BufWriter.
@Centril
Copy link
Contributor Author

Centril commented Mar 28, 2019

@bors r+ p=12

@bors
Copy link
Contributor

bors commented Mar 28, 2019

📌 Commit d403cd7 has been approved by Centril

@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 Mar 28, 2019
@bors
Copy link
Contributor

bors commented Mar 28, 2019

⌛ Testing commit d403cd7 with merge 237bf32...

bors added a commit that referenced this pull request Mar 28, 2019
Rollup of 12 pull requests

Successful merges:

 - #57987 (Fix some AArch64 typos)
 - #58581 (Refactor generic parameter encoder functions)
 - #58803 (fs::copy() unix: set file mode early)
 - #58848 (Prevent cache issues on version updates)
 - #59198 (Do not complain about unmentioned fields in recovered patterns)
 - #59351 (Include llvm-ar with llvm-tools component)
 - #59413 (HirIdify hir::ItemId)
 - #59441 (Remove the block on natvis for lld-link.)
 - #59448 (Use consistent phrasing for all macro summaries)
 - #59456 (Add documentation about `for` used as higher ranked trait bounds)
 - #59472 (Document that `std::io::BufReader` discards contents on drop)
 - #59474 (Fix link capitalization in documentation of std::io::BufWriter.)

Failed merges:

r? @ghost
@bors
Copy link
Contributor

bors commented Mar 28, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Centril
Pushing 237bf32 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 28, 2019
@bors bors merged commit d403cd7 into rust-lang:master Mar 28, 2019
@Centril Centril deleted the rollup branch March 28, 2019 12:14
@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
merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.