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 #69883

Closed
wants to merge 55 commits into from
Closed

Commits on Feb 29, 2020

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

Commits on Mar 7, 2020

  1. resolve: Simplify fn report_privacy_error

    by factoring out `fn ctor_fields_span` into a separate function
    petrochenkov committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    7819335 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    059e825 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2020

  1. Configuration menu
    Copy the full SHA
    f2cbe30 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b3364f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6cb04d9 View commit details
    Browse the repository at this point in the history
  4. simplify submod_path

    Centril committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    024af0b View commit details
    Browse the repository at this point in the history
  5. submod_path: use id.span

    Centril committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    9855b34 View commit details
    Browse the repository at this point in the history
  6. extract parse_mod

    Centril committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    3eb86cf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cbcb550 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    996449b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    81b3500 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f284eb3 View commit details
    Browse the repository at this point in the history
  11. expand: use push_directory

    Centril committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    aff35c4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    75ad1b8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e0d001e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    df3792c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a9fd977 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e994922 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    65d072d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1b527ae View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    adc3451 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    d171e59 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2020

  1. parser/expand: minor cleanup

    Centril committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    ad0b078 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8fba7fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b16d659 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2020

  1. fix rust-lang#62456

    contrun committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    906bb8d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a0c850 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7df5868 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    42ab820 View commit details
    Browse the repository at this point in the history
  5. parse_labeled_expr: simplify

    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    9596dc2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c303c44 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    883e90d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8ee220c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    055733f View commit details
    Browse the repository at this point in the history
  10. parse: simplify parse_fn_body

    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    379f318 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    be86b2d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    addbc5b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fe848b4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e72df7e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    83be689 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    65b7ba5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c01b3e6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    09997e7 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    25cd01b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c0b073b View commit details
    Browse the repository at this point in the history
  21. use check_path more

    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    d1822b3 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ba3ae46 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    458383d View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#69591 - matthewjasper:query-response-relate…

    …, r=nikomatsakis
    
    Use TypeRelating for instantiating query responses
    
    `eq` can add constraints to `RegionConstraintData`, which isn't allowed during borrow checking outside of a `CustomTypeOp`. Use `TypeRelating` instead to always push constraints to the obligations list.
    
    closes rust-lang#69490
    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    d562523 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#69760 - Centril:parse-expr-improve, r=estebank

    Improve expression & attribute parsing
    
    This PR includes misc improvements to expression and attribute parsing.
    
    1. Some code simplifications
    2. Better recovery for various block forms, e.g. `loop statements }` (missing `{` after `loop`). (See e.g., `block-no-opening-brace.rs` among others for examples.)
    3. Added recovery for e.g., `unsafe $b` where `$b` refers to a `block` macro fragment. (See `bad-interpolated-block.rs` for examples.)
    4. ^--- These are done so that code sharing in block parsing is increased.
    5. Added recovery for e.g., `'label: loop { ... }` (See `labeled-no-colon-expr.rs`.)
    6. Added recovery for e.g., `&'lifetime expr` (See `regions-out-of-scope-slice.rs`.)
    7. Added recovery for e.g., `fn foo() = expr;` (See `fn-body-eq-expr-semi.rs`.)
    8. Simplified attribute parsing code & slightly improved diagnostics.
    9. Added recovery for e.g., `Box<('a) + Trait>`.
    10. Added recovery for e.g, `if true #[attr] {} else #[attr] {} else #[attr] if true {}`.
    
    r? @estebank
    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    8f39930 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#69811 - petrochenkov:privdiag2, r=estebank

    resolve: Print import chains on privacy errors
    
    A part of rust-lang#67951 that doesn't require hacks.
    r? @estebank
    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    6a77a75 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#69837 - jonas-schievink:gen-discr-opt, r=tm…

    …andry
    
    Use smaller discriminants for generators
    
    Closes rust-lang#69815
    
    I'm not yet sure about the runtime performance impact of this, so I'll try running this on some benchmarks (if I can find any). (Update: No impact on the benchmarks I've measured on)
    
    * [x] Add test with a generator that has exactly 256 total states
    * [x] Add test with a generator that has more than 256 states so that it needs to use a u16 discriminant
    * [x] Add tests for the size of `Option<[generator]>`
    * [x] Add tests for the `discriminant_value` intrinsic in all cases
    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    d4a9400 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#69838 - Centril:expand-module, r=petrochenk…

    …ov,eddyb
    
    Expansion-driven outline module parsing
    
    After this PR, the parser will not do any conditional compilation or loading of external module files when `mod foo;` is encountered. Instead, the parser only leaves `mod foo;` in place in the AST, with no items filled in. Expansion later kicks in and will load the actual files and do the parsing. This entails that the following is now valid:
    
    ```rust
    #[cfg(FALSE)]
    mod foo {
        mod bar {
            mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
        }
    }
    ```
    
    Fixes rust-lang#64197.
    
    r? @petrochenkov
    Centril committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    3b8b04b View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    9d93aa1 View commit details
    Browse the repository at this point in the history