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 10 pull requests #63482

Closed
wants to merge 24 commits into from
Closed

Commits on Jul 26, 2019

  1. Use sharded maps for queries

    Zoxc committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    f84967f View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2019

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

Commits on Aug 5, 2019

  1. Configuration menu
    Copy the full SHA
    aa72b1d View commit details
    Browse the repository at this point in the history
  2. improve wrapping_ docs

    RalfJung committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    0dc9e2a View commit details
    Browse the repository at this point in the history
  3. test Retag in drop shim

    RalfJung committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    3df672f View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2019

  1. Revert "Simplify MIR generation for logical ops"

    This reverts commit e38e954.
    
    llvm were not able to optimize the code that well with the simplified mir.
    
    Closes: rust-lang#62993
    andjo403 committed Aug 10, 2019
    Configuration menu
    Copy the full SHA
    676953f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa7fe19 View commit details
    Browse the repository at this point in the history
  3. Suggest using a qualified path in patterns with inconsistent bindings

    A program like the following one:
    
    ```rust
    enum E { A, B, C }
    fn f(x: E) -> bool {
        match x {
            A | B => false,
            C => true
        }
    }
    ```
    
    is rejected by the compiler due to `E` variant paths not being in scope.
    In this case `A`, `B` are resolved as pattern bindings and consequently
    the pattern is considered invalid as the inner or-patterns do not bind
    to the same set of identifiers.
    
    This is expected but the compiler errors that follow could be surprising
    or confusing to some users. This commit adds a help note explaining that
    if the user desired to match against variants or consts, they should use
    a qualified path. The note is restricted to cases where the identifier
    starts with an upper-case sequence so as to reduce the false negatives.
    
    Since this happens during resolution, there's no clean way to check what
    the patterns match against. The syntactic criterium, however, is in line
    with the convention that's assumed by the `non-camel-case-types` lint.
    jakubadamw committed Aug 10, 2019
    Configuration menu
    Copy the full SHA
    53a6304 View commit details
    Browse the repository at this point in the history
  4. Apply suggestions from code review

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    jakubadamw and Centril committed Aug 10, 2019
    Configuration menu
    Copy the full SHA
    30db4eb View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2019

  1. Configuration menu
    Copy the full SHA
    af5625d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75d2db9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ed4a42 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5981dff View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2019

  1. Fixes rust-lang#63477

    Adds a closing parenthesis.
    OptimisticPeach committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    3d38187 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#62108 - Zoxc:sharded-queries, r=oli-obk

    Use sharded maps for queries
    
    Based on rust-lang#61779.
    
    r? @gankro
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    4f1cc83 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#63297 - RalfJung:ptr_offset, r=dtolnay

    Improve pointer offset method docs
    
    Cc @rkruppe @gnzlbg
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    67de6ce View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#63306 - RalfJung:retag, r=varkor

    Adapt AddRetag for shallow retagging
    
    With rust-lang/miri#872, Miri only retags "bare" references, not those nested in compound types. This adjust `Retag` statement generation to don't emit retags if they are definitely not a bare reference.
    
    I also expanded the mir-opt test to cover the `Retag` in the drop shim, which had previously not been tested.
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    f049636 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#63406 - jakubadamw:resolve-inconsistent-nam…

    …es-suggest-qualified-path, r=petrochenkov
    
    Suggest using a qualified path in patterns with inconsistent bindings
    
    A program like the following one:
    
    ```rust
    enum E { A, B, C }
    fn f(x: E) -> bool {
        match x {
            A | B => false,
            C => true
        }
    }
    ```
    
    is rejected by the compiler due to `E` variant paths not being in scope.
    In this case `A`, `B` are resolved as pattern bindings and consequently
    the pattern is considered invalid as the inner or-patterns do not bind
    to the same set of identifiers.
    
    This is expected but the compiler errors that follow could be surprising
    or confusing to some users. This commit adds a help note explaining that
    if the user desired to match against variants or consts, they should use
    a qualified path. The help note is restricted to cases where the identifier
    starts with an upper-case sequence so as to reduce the false negatives.
    
    Since this happens during resolution, there's no clean way to check what
    it is the patterns match against. The syntactic criterium, however, is in line
    with the convention that's assumed by the `non-camel-case-types` lint.
    
    Fixes rust-lang#50831.
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    83e1e1f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#63431 - andjo403:revert_mir_simplification,…

    … r=matthewjasper
    
    Revert "Simplify MIR generation for logical ops"
    
    This reverts commit e38e954.
    
    llvm were not able to optimize the code that well with the simplified mir.
    
    Closes: rust-lang#62993
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    ecfca80 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#63449 - petrochenkov:builtinagain, r=eddyb

    resolve: Remove remaining special cases from built-in macros
    
    Edition and definition sites of the macros are now also taken from the `#[rustc_builtin_macro]` definitions in `libcore`.
    
    ---
    The edition switch may be a breaking change for `Rustc{Encodable,Decodable}` derives if they are used in combination with the unstable crate `serialize` from sysroot like this
    ```rust
    extern crate serialize;
    use serialize as rustc_serialize;
    
    #[derive(RustcEncodable)]
    struct S;
    ```
    (see the updated `ui-fulldeps` tests).
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    124537a View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#63461 - tommilligan:doc-var-panic, r=joshtr…

    …iplett
    
    docs: add stdlib env::var(_os) panic
    
    Closes rust-lang#63456
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    61e7fbd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fdd6e75 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    10815a9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#63480 - OptimisticPeach:patch-1, r=Centril

    Fixes rust-lang#63477
    
    Adds a closing parenthesis.
    Centril committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    a7496fb View commit details
    Browse the repository at this point in the history