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 6 pull requests #66982

Merged
merged 31 commits into from
Dec 3, 2019
Merged

Rollup of 6 pull requests #66982

merged 31 commits into from
Dec 3, 2019

Commits on Nov 25, 2019

  1. add enclosing_scope param to rustc_on_unimplmented

    add ui test
    
    compute enclosing_scope_span on demand
    
    add scope test
    
    make tidy happy
    
    stylistic and typo fixes
    basil-cow committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    45aadf7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d0c015 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2019

  1. Configuration menu
    Copy the full SHA
    a329756 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2019

  1. Configuration menu
    Copy the full SHA
    71abce1 View commit details
    Browse the repository at this point in the history
  2. add example to move

    DevinR528 committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    b67d6c7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44f3bee View commit details
    Browse the repository at this point in the history
  4. remove trailing whitespace

    DevinR528 committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    d5a4c62 View commit details
    Browse the repository at this point in the history
  5. fix doc compile fail

    DevinR528 committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    c69be48 View commit details
    Browse the repository at this point in the history
  6. add ";" for let = match

    DevinR528 committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    7c3befc View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2019

  1. Remove ord lang item

    CAD97 committed Dec 1, 2019
    Configuration menu
    Copy the full SHA
    ac57e1b View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2019

  1. add grammer fixes

    DevinR528 committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    e638f7c View commit details
    Browse the repository at this point in the history
  2. Don't build the same matrix twice

    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.
    Nadrieril committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    fe67196 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21af89d View commit details
    Browse the repository at this point in the history
  4. Simplify lifetimes by allocating patterns on the arena

    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).
    Nadrieril committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    e6aa962 View commit details
    Browse the repository at this point in the history
  5. Add some tests

    Nadrieril committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    00ccadf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5c7bd52 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a476af2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ef087d9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1c1bec2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a81804b View commit details
    Browse the repository at this point in the history
  11. syntax: Remove redundant span from ast::Mac

    Also remove a couple of redundant `visit_mac` asserts
    petrochenkov committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    0fac567 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1a496f3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5378955 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cf71538 View commit details
    Browse the repository at this point in the history
  15. Address review comments

    petrochenkov committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    498737c View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2019

  1. Rollup merge of rust-lang#66148 - oli-obk:it_must_be_a_sign, r=RalfJung

    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`?
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    3045d22 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#66651 - Areredify:on-unimplemented-scope, r…

    …=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)
    
    Closes rust-lang#61709.
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    8dacfc2 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#66904 - DevinR528:keyword-doc, r=Dylan-DPC

    Adding docs for keyword match, move
    
    Partial fix of issue rust-lang#34601.
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    01345d6 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#66935 - petrochenkov:attrtok2, r=Centril

    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
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    cf937fa View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#66941 - CAD97:nord, r=Dylan-DPC

    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.
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    1303bf2 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#66967 - Nadrieril:remove-or-pat-hack, r=varkor

    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
    Centril authored Dec 3, 2019
    Configuration menu
    Copy the full SHA
    bce7798 View commit details
    Browse the repository at this point in the history