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 7 pull requests #68423

Merged
merged 32 commits into from
Jan 21, 2020
Merged

Rollup of 7 pull requests #68423

merged 32 commits into from
Jan 21, 2020

Commits on Jan 10, 2020

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

Commits on Jan 17, 2020

  1. Options IP_MULTICAST_TTL and IP_MULTICAST_LOOP are 1 byte on BSD and …

    …Solaris
    
    See ip(4P) man page:
     IP_MULTICAST_TTL     Time  to live for multicast datagrams. This option
                          takes an unsigned character as  an  argument.  Its
                          value  is  the TTL that IP uses on outgoing multi-
                          cast datagrams. The default is 1.
    
     IP_MULTICAST_LOOP    Loopback for multicast datagrams. Normally  multi-
                          cast  datagrams  are  delivered  to members on the
                          sending  host  (or  sending  zone).  Setting   the
                          unsigned  character argument to 0 causes the oppo-
                          site behavior, meaning that  when  multiple  zones
                          are  present,  the  datagrams are delivered to all
                          zones except the sending zone.
    
    https://docs.oracle.com/cd/E88353_01/html/E37851/ip-4p.html
    https://man.openbsd.org/ip.4
    Vita Batrla committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    34878d7 View commit details
    Browse the repository at this point in the history
  2. refactor fix using cfg_if!

    Vita Batrla committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    dda32e4 View commit details
    Browse the repository at this point in the history
  3. refactor fix using cfg_if! (fix build)

    Vita Batrla committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    239a7d9 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Actually pass target LLVM args to LLVM

    Jethro Beekman committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    766f6c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Configuration menu
    Copy the full SHA
    01cbe50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a790f9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    958b0bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb60346 View commit details
    Browse the repository at this point in the history
  5. Revert "Add a constness field to ast::TraitRef"

    This reverts commit fd4a6a1.
    ecstatic-morse committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    1a3bd57 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ab3081a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d2aefbb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    adbd01e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3b1a9d3 View commit details
    Browse the repository at this point in the history
  10. Parse ?const ?Trait

    ecstatic-morse committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    0ac4ba0 View commit details
    Browse the repository at this point in the history
  11. Update tests

    ecstatic-morse committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    23ea42c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    71450c7 View commit details
    Browse the repository at this point in the history
  13. refactor fix using cfg_if! (fix build on Solaris)

    Vita Batrla committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    5392442 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    78f0c7f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    58eb03d View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. Configuration menu
    Copy the full SHA
    1b800a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bd69a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14c002e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e947ef View commit details
    Browse the repository at this point in the history
  5. lowering: cleanup some hofs

    Centril committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    32a81f7 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#67686 - ssomers:keys_start_slasher, r=Mark-…

    …Simulacrum
    
    Simplify NodeHeader by avoiding slices in BTreeMaps with shared roots
    
    Simplify a complicated piece of code that creates slices of keys in node leaves.
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    d532a04 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#68140 - ecstatic-morse:const-trait-bound-op…

    …t-out, r=oli-obk
    
    Implement `?const` opt-out for trait bounds
    
    For now, such bounds are treated exactly the same as unprefixed ones in all contexts. [RFC 2632](rust-lang/rfcs#2632) does not specify whether such bounds are forbidden outside of `const` contexts, so they are allowed at the moment.
    
    Prior to this PR, the constness of a trait bound/impl was stored in `TraitRef`. Now, the constness of an `impl` is stored in `ast::ItemKind::Impl` and the constness of a bound in `ast::TraitBoundModifer`. Additionally, constness of trait bounds is now stored in an additional field of `ty::Predicate::Trait`, and the combination of the constness of the item along with any `TraitBoundModifier` determines the constness of the bound in accordance with the RFC. Encoding the constness of impls at the `ty` level is left for a later PR.
    
    After a discussion in \#wg-grammar on Discord, it was decided that the grammar should not encode the mutual exclusivity of trait bound modifiers. The grammar for trait bound modifiers remains `[?const] [?]`. To encode this, I add a dummy variant to `ast::TraitBoundModifier` that is used when the syntax `?const ?` appears. This variant causes an error in AST validation and disappears during HIR lowering.
    
    cc rust-lang#67794
    
    r? @oli-obk
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    3484e2f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#68313 - batrla:master, r=alexcrichton

    Options IP_MULTICAST_TTL and IP_MULTICAST_LOOP are 1 byte on BSD
    
    Options IP_MULTICAST_TTL and IP_MULTICAST_LOOP are 1 byte on BSD and Solaris
    
    See ip(4P) man page:
     IP_MULTICAST_TTL     Time  to live for multicast datagrams. This option
                          takes an unsigned character as  an  argument.  Its
                          value  is  the TTL that IP uses on outgoing multi-
                          cast datagrams. The default is 1.
    
     IP_MULTICAST_LOOP    Loopback for multicast datagrams. Normally  multi-
                          cast  datagrams  are  delivered  to members on the
                          sending  host  (or  sending  zone).  Setting   the
                          unsigned  character argument to 0 causes the oppo-
                          site behavior, meaning that  when  multiple  zones
                          are  present,  the  datagrams are delivered to all
                          zones except the sending zone.
    
    https://docs.oracle.com/cd/E88353_01/html/E37851/ip-4p.html
    https://man.openbsd.org/ip.4
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    dabd816 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#68328 - jethrogb:jb/target-llvm-args, r=ale…

    …xcrichton
    
    Actually pass target LLVM args to LLVM
    
    Missed in rust-lang#68059
    
    r? @alexcrichton
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    3fa8cc3 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#68399 - Centril:check-match-unify, r=oli-obk

    check_match: misc unifications and ICE fixes
    
    These are some unifications made as a by-product of working on `hir::ExprKind::Let`.
    
    Fixes rust-lang#68396.
    Fixes rust-lang#68394.
    Fixes rust-lang#68393.
    
    r? @oli-obk @matthewjasper
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    5850482 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#68415 - matthiaskrgr:tidy_clippy, r=oli-obk

    tidy: fix most clippy warnings
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    b6d6391 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#68416 - Centril:lowering-cleanup-hofs, r=pi…

    …etroalbini
    
    lowering: cleanup some hofs
    
    Some drive-by cleanup while working on `let_chains`.
    
    r? @pietroalbini
    Centril authored Jan 21, 2020
    Configuration menu
    Copy the full SHA
    c1b20b1 View commit details
    Browse the repository at this point in the history