Skip to content

Rollup of 6 pull requests - #66982

Merged
bors merged 31 commits into
rust-lang:masterfrom
Centril:rollup-yq2281i
Dec 3, 2019
Merged

Rollup of 6 pull requests#66982
bors merged 31 commits into
rust-lang:masterfrom
Centril:rollup-yq2281i

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

basil-cowand others added 30 commits November 25, 2019 18:05
add ui test
compute enclosing_scope_span on demand
add scope test
make tidy happy
stylistic and typo fixes
The exact same logic was used in check_arms and check_match to build the
matrix of relevant patterns. It would actually probably have been a bug
if it was not the case, since exhaustiveness checking should be the same
as checking reachability of an additional `_ => ...` match branch.
We want the lifetimes of the patterns contained in the matrix and the
candidate `PatStack` to be the same so that they can be mixed together.
A lot of this would not be necessary if `SmallVec` was covariant in its
type argument (see servo/rust-smallvec#146).
Also remove a couple of redundant `visit_mac` asserts
Show the sign for signed ops on `exact_div`
r? @RalfJung Cc https://github.com/rust-lang/miri/pull/961/files#r341842128
I'm fairly unhappy with the duplication and the general effort required for this.
Maybe it would be better to add a `display` impl for `ImmTy`?
…=davidtwco
Add `enclosing scope` parameter to `rustc_on_unimplemented`
Adds a new parameter to `#[rustc_on_unimplemented]`, `enclosing scope`, which highlights the function or closure scope with a message.
The wip part refers to adding this annotation to `Try` trait to improve ergonomics (which I don't know how to do since I change both std and librustc)
Closesrust-lang#61709.
Adding docs for keyword match, move
Partial fix of issue rust-lang#34601.
syntax: Unify macro and attribute arguments in AST
The unified form (`ast::MacArgs`) represents parsed arguments instead of an unstructured token stream that was previously used for attributes.
It also tracks some spans and delimiter kinds better for fn-like macros and macro definitions.
I've been talking about implementing this with @nnethercote in rust-lang#65750 (comment).
The parsed representation is closer to `MetaItem` and requires less token juggling during conversions, so it potentially may be faster.
r? @Centril
Remove `ord` lang item
At this point it seems to be unused, and just `partial_ord` is used instead. This removes the unused lang item.
Remove hack for top-level or-patterns in match checking
Follow-up to rust-lang#66612.
Or-patterns are now truly first-class in match checking. As a side-effect, redundant subpatterns are linted as such, making the `unreachable_patterns` lint a bit more general.
cc rust-lang#54883
r? @varkor
@CentrilCentril mentioned this pull request Dec 3, 2019
@CentrilCentril added the rollup A PR which is a rollup label Dec 3, 2019
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=6 rollup=never

@bors

bors commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit bce7798 has been approved by Centril

@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 3, 2019
@bors

bors commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit bce7798 with merge f577b0e...

bors added a commit that referenced this pull request Dec 3, 2019
Rollup of 6 pull requests
Successful merges:
- #66148 (Show the sign for signed ops on `exact_div`)
- #66651 (Add `enclosing scope` parameter to `rustc_on_unimplemented`)
- #66904 (Adding docs for keyword match, move)
- #66935 (syntax: Unify macro and attribute arguments in AST)
- #66941 (Remove `ord` lang item)
- #66967 (Remove hack for top-level or-patterns in match checking)
Failed merges:
r? @ghost
@bors

bors commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

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

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Dec 3, 2019
@bors
bors merged commit bce7798 into rust-lang:masterDec 3, 2019
@Centril
Centril deleted the rollup-yq2281i branch December 3, 2019 16:28
@rust-highfive

Copy link
Copy Markdown
Contributor

📣 Toolstate changed by #66982!

Tested on commit f577b0e.
Direct link to PR: #66982

💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton@oli-obk@Manishearth@flip1995@yaahc@phansch@llogiq, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton@oli-obk@Manishearth@flip1995@yaahc@phansch@llogiq, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Dec 3, 2019
Tested on commit rust-lang/rust@f577b0e.
Direct link to PR: <rust-lang/rust#66982>
💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton@oli-obk@Manishearth@flip1995@yaahc@phansch@llogiq, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton@oli-obk@Manishearth@flip1995@yaahc@phansch@llogiq, @rust-lang/infra).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.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.

9 participants

@Centril@bors@rust-highfive@basil-cow@oli-obk@DevinR528@CAD97@Nadrieril@petrochenkov