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 8 pull requests #67560

Merged
merged 29 commits into from
Dec 23, 2019
Merged

Rollup of 8 pull requests #67560

merged 29 commits into from
Dec 23, 2019

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Dec 23, 2019

Successful merges:

Failed merges:

r? @ghost

oli-obk and others added 29 commits December 20, 2019 23:15
This purges uses of uninitialized where possible from test cases. Some
are merely moved over to the equally bad pattern of
MaybeUninit::uninit().assume_init() but with an annotation that this is
"the best we can do".
Co-Authored-By: Ralf Jung <post@ralfj.de>
The function is never used inside lowering,
but only ever in external crates.

By moving it, we faciliate lowering as its own crate.
Require const stability attributes on intrinsics to be able to use them in constant contexts

r? @Centril

finally fixes rust-lang#61495

cc @RalfJung
…tril

Remove mem::uninitalized from tests

This purges uses of uninitialized where possible from test cases. Some
are merely moved over to the equally bad pattern of
MaybeUninit::uninit().assume_init() but with an annotation that this is
"the best we can do".

Fixes rust-lang#62397
…h, r=kinnison

Results show too much

Fixes rust-lang#67461.

To reproduce the current issue: search anything, then once the results appears, press escape. They should disappear then re-appear right away. This is because blurring an element triggers the "change" event.

r? @kinnison
…rk-Simulacrum

Move `{hir::lowering -> hir}::is_range_literal`

The function is never used inside lowering, but only ever in external crates.
By moving it, we facilitate lowering as its own crate.

Best read commit-by-commit.

r? @Mark-Simulacrum
…ntril

Improve diagnostics for invalid assignment

- Improve wording and span information for invalid assignment diagnostics.
- Link to rust-lang/rfcs#372 when it appears the user is trying a destructuring assignment.
- Make the equality constraint in `where` clauses error consistent with the invalid assignment error.
Fix ICE in mir interpretation

Indices from the end start at 1 so you can immediately subtract them from the length to get the index instead of having to do an additional `-1`. Kinda documented in https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/enum.ProjectionElem.html#variant.ConstantIndex
Document that calling Drop, even after it panics, is UB

Fixes rust-lang#60822.

r? @gnzlbg
@Centril
Copy link
Contributor Author

Centril commented Dec 23, 2019

@bors r+ p=8 rollup=never

@bors
Copy link
Contributor

bors commented Dec 23, 2019

📌 Commit 68a9a2d has been approved by Centril

@bors
Copy link
Contributor

bors commented Dec 23, 2019

🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened

@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 Dec 23, 2019
@Centril Centril added the rollup A PR which is a rollup label Dec 23, 2019
@Centril
Copy link
Contributor Author

Centril commented Dec 23, 2019

@bors p=200

@bors
Copy link
Contributor

bors commented Dec 23, 2019

⌛ Testing commit 68a9a2d with merge 89ff48672fe0f19a947f573b9175bdb7add77d6e...

@bors
Copy link
Contributor

bors commented Dec 23, 2019

💔 Test failed - checks-azure

@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 Dec 23, 2019
@Centril
Copy link
Contributor Author

Centril commented Dec 23, 2019

@bors retry

@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 Dec 23, 2019
@bors
Copy link
Contributor

bors commented Dec 23, 2019

⌛ Testing commit 68a9a2d with merge 9ae6ced...

bors added a commit that referenced this pull request Dec 23, 2019
Rollup of 8 pull requests

Successful merges:

 - #67233 (Add PartialEq and Eq to Cursor)
 - #67466 (Require const stability attributes on intrinsics to be able to use them in constant contexts)
 - #67507 (Remove mem::uninitalized from tests)
 - #67527 (Results show too much)
 - #67536 (Move `{hir::lowering -> hir}::is_range_literal`)
 - #67538 (Improve diagnostics for invalid assignment)
 - #67546 (Fix ICE in mir interpretation)
 - #67559 (Document that calling Drop, even after it panics, is UB)

Failed merges:

r? @ghost
@bors
Copy link
Contributor

bors commented Dec 23, 2019

☀️ Test successful - checks-azure
Approved by: Centril
Pushing 9ae6ced to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 23, 2019
@bors bors merged commit 68a9a2d into rust-lang:master Dec 23, 2019
@Centril Centril deleted the rollup-fzdpu9c branch December 23, 2019 22:03
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.

None yet

8 participants