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 16 pull requests #53662

Merged
merged 43 commits into from
Aug 24, 2018
Merged

Rollup of 16 pull requests #53662

merged 43 commits into from
Aug 24, 2018

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Aug 24, 2018

Successful merges:

FelixMcFelix and others added 30 commits July 20, 2018 14:12
…ine with other descriptions.

add ticks around a few keywords in other descriptions.
Previously approved in rust-lang#43498 ; update tidy to match.
Window Mutex: Document that we properly initialize the SRWLock

See rust-lang#35836
Discourage overuse of mem::forget

Some uses of `mem::forget` have been replaced by better methods of `Box`, so I've removed obsoleted use-cases from these docs.

I've removed emphasis on leaking, because it's not obvious `mem::forget` does not guarantee leaking of memory: memory of stack-allocated objects and values partially moved out of `Box` will still be freed. That's a potential error when used to pass objects to FFI, so it's better to direct users to `Box::into_raw` instead.
…nagisa

Lament the invincibility of the Turbofish

Here a test case is added to ensure that any others attempting to drive the Turbofish to extinction have second thoughts. Previously the [entire test suite would succeed](rust-lang#53511) if generic arguments were accepted without disambiguation, making for [confusing and heartbreaking circumstances](rust-lang/rfcs#2527).
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
@kennytm
Copy link
Member Author

kennytm commented Aug 24, 2018

@bors r+

Replaced #53653 with #53567 again due to the spurious failure switching their places 😒

@bors
Copy link
Contributor

bors commented Aug 24, 2018

📌 Commit d4c7ca226ca47c6fd22a1f0b07b955479fb03aa2 has been approved by kennytm

@bors
Copy link
Contributor

bors commented Aug 24, 2018

⌛ Testing commit d4c7ca226ca47c6fd22a1f0b07b955479fb03aa2 with merge 418951aa36d6b4eb26f8e1de4708b2c93c6fd29d...

@bors
Copy link
Contributor

bors commented Aug 24, 2018

💔 Test failed - status-appveyor

@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 Aug 24, 2018
@RalfJung
Copy link
Member

duplicate artfacts found when compiling a tool, this typically means that something was recompiled because a transitive dependency has different features activated than in a previous build:
the following dependencies are duplicated although they have the same features enabled:
  backtrace 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` ("C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\x86_64-pc-windows-msvc\\release\\deps\\libbacktrace-6b9a1d9a5e670f0c.rlib")
    `cargo` ("C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\x86_64-pc-windows-msvc\\release\\deps\\libbacktrace-c21f6d630b07fdee.rlib")
the following dependencies have different features:
  winapi 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)
    `clippy-driver` additionally enabled features {} at "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi-69be4c44afc2c6f9.rlib"
    `cargo` additionally enabled features {"shellapi", "userenv"} at "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi-31820f86a1bf3e6c.rlib"

@kennytm kennytm mentioned this pull request Aug 24, 2018
…ochenkov

Fix rust-lang#50865: ICE on impl-trait returning functions reaching private items

Adds a test case as suggested in rust-lang#50865, and implements @petrochenkov's suggestion. Fixes rust-lang#50865.

Impl-trait-returning functions are marked under a new (low) access level, which they propagate rather than `AccessLevels::Reachable`. `AccessLevels::is_reachable` returns false for such items (leaving stability analysis unaffected), these items may still be visible to the lints phase however.
@kennytm kennytm changed the title Rollup of 15 pull requests Rollup of 16 pull requests Aug 24, 2018
…acrum

Added rustc_codegen_llvm to compiler documentation.

Fixes rust-lang#51737.
@kennytm
Copy link
Member Author

kennytm commented Aug 24, 2018

@bors r+

Removed #53567 (dist failed)
Added #53545, #53666.

@bors
Copy link
Contributor

bors commented Aug 24, 2018

📌 Commit c6039de has been approved by kennytm

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 24, 2018
@bors
Copy link
Contributor

bors commented Aug 24, 2018

⌛ Testing commit c6039de with merge 727eabd...

bors added a commit that referenced this pull request Aug 24, 2018
Rollup of 16 pull requests

Successful merges:

 - #53311 (Window Mutex: Document that we properly initialize the SRWLock)
 - #53503 (Discourage overuse of mem::forget)
 - #53545 (Fix #50865: ICE on impl-trait returning functions reaching private items)
 - #53559 (add macro check for lint)
 - #53562 (Lament the invincibility of the Turbofish)
 - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into())
 - #53592 (docs: minor stylistic changes to str/string docs)
 - #53594 (Update RELEASES.md to include clippy-preview)
 - #53600 (Fix a grammatical mistake in "expected generic arguments" errors)
 - #53614 (update nomicon and book)
 - #53617 (tidy: Stop requiring a license header)
 - #53618 (Add missing fmt examples)
 - #53636 (Prefer `.nth(n)` over `.skip(n).next()`.)
 - #53644 (Use SmallVec for SmallCStr)
 - #53664 (Remove unnecessary closure in rustc_mir/build/mod.rs)
 - #53666 (Added rustc_codegen_llvm to compiler documentation.)
@bors
Copy link
Contributor

bors commented Aug 24, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 727eabd to master...

@bors bors merged commit c6039de into rust-lang:master Aug 24, 2018
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #53662!

Tested on commit 727eabd.
Direct link to PR: #53662

🎉 book on windows: test-fail → test-pass.
🎉 book on linux: test-fail → test-pass.
🎉 nomicon on windows: test-fail → test-pass.
🎉 nomicon on linux: test-fail → test-pass.

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Aug 24, 2018
Tested on commit rust-lang/rust@727eabd.
Direct link to PR: <rust-lang/rust#53662>

🎉 book on windows: test-fail → test-pass.
🎉 book on linux: test-fail → test-pass.
🎉 nomicon on windows: test-fail → test-pass.
🎉 nomicon on linux: test-fail → test-pass.
@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 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.

Compiler crashed with cannot create local mono-item