Skip to content

Rollup of 5 pull requests - #67503

Closed
Centril wants to merge 49 commits into
rust-lang:masterfrom
Centril:rollup-betaed7
Closed

Rollup of 5 pull requests#67503
Centril wants to merge 49 commits into
rust-lang:masterfrom
Centril:rollup-betaed7

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

mati865and others added 30 commits December 18, 2019 22:48
The code is dead because `check_pat_slice` will never have
`expected = ty::Ref(...)` due to default-binding-modes
(see `is_non_ref_pat`, `peel_off_references`).
Moreover, if the type is not `ty::Array(_) | ty::Slice(_)`
then `check_pat_slice` enters an error branch.
Also use `types.err` when matching on `expected.kind`s
which don't match `ty::Array(..) | ty::Slice(_)`.
Avoid calling `.node_type(...)` again.
After rust-lang#62550, it is no longer possible for `slice`
to be other than `None | Some(Binding(..) | Wild)`.
In particular, `lower_pat_slice` may never generate
`Some(Array(..) | Slice(..))` and so there is nothing
to flatten into `slice`.
(The backticks were rendering badly in VSCode.)
Centriland others added 19 commits December 21, 2019 19:20
 Refactor type & bounds parsing thoroughly
PR is based on rust-lang#67131 with first one from this PR being ` extract parse_ty_tuple_or_parens`.
Also fixesrust-lang#67146.
r? @estebank
…lacrum
Reenable static linking of libstdc++ on windows-gnu
Fixesrust-lang#67408
Verified locally that `rustc_driver` is now statically linked to libstdc++.
…jasper
Cleanup `lower_pattern_unadjusted` & Improve slice pat typeck
Following up on rust-lang#67318, in this PR, the HAIR lowering of patterns (`lower_pattern_unadjusted`) is cleaned up with a focus on slice patterns (in particular, some dead code is removed). Moreover, `check_pat_slice` is refactored some more.
r? @matthewjasper
…-0-part-2, r=Centril
Require issue = "none" over issue = "0" in unstable attributes
These changes make the use of `issue = "none"` required in unstable attributes throughout the compiler.
Notes:
- rust-lang#66299 is now in beta so `issue = "none"` is accepted.
- The `tidy` tool now fails on `issue = "0"`.
- Tests that used `issue = "0"` were changed to use `issue = "none"`, except for _one_ that asserts `issue = "0"` can still be used.
- The compiler still allows `issue = "0"` because some submodules require it, this could be disallowed once these are updated.
Resolvesrust-lang#41260
r? @varkor
…rns, r=Centril
Tweak non_shorthand_field_patterns' suggestion
Fixesrust-lang#66434
r? @estebank
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=200 rollup=never

@bors

bors commented Dec 22, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit f358d92 has been approved by Centril

@bors

bors commented Dec 22, 2019

Copy link
Copy Markdown
Collaborator

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

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 22, 2019
@CentrilCentril added the rollup A PR which is a rollup label Dec 22, 2019
@CentrilCentril closed this Dec 22, 2019
@Centril
Centril deleted the rollup-betaed7 branch December 22, 2019 01:40
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollupS-waiting-on-borsStatus: 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.

6 participants

@Centril@bors@mati865@rossmacarthur@LeSeulArtichaut@JohnTitor