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 8 pull requests #63074

Merged
merged 65 commits into from
Jul 28, 2019
Merged

Rollup of 8 pull requests #63074

merged 65 commits into from
Jul 28, 2019

Commits on Jul 17, 2019

  1. Configuration menu
    Copy the full SHA
    0fdf24b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97b4156 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. Configuration menu
    Copy the full SHA
    f93032c View commit details
    Browse the repository at this point in the history
  2. Fix clippy::len_zero warnings

    mati865 committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    124f6ef View commit details
    Browse the repository at this point in the history
  3. Regressions ok for miri too

    Co-Authored-By: kennytm <[email protected]>
    mark-i-m and kennytm authored Jul 18, 2019
    Configuration menu
    Copy the full SHA
    8070bb8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2d05db View commit details
    Browse the repository at this point in the history
  5. Update src/ci/docker/x86_64-gnu-tools/checktools.sh

    Co-Authored-By: Ralf Jung <[email protected]>
    mark-i-m and RalfJung authored Jul 18, 2019
    Configuration menu
    Copy the full SHA
    8b87162 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17c4084 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8940a27 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1aa1079 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. more comments for toolstate scripts

    RalfJung authored and mark-i-m committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    9c48ed4 View commit details
    Browse the repository at this point in the history
  2. more callback docs

    RalfJung authored and mark-i-m committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    92d432a View commit details
    Browse the repository at this point in the history
  3. more comments

    RalfJung authored and mark-i-m committed Jul 23, 2019
    Configuration menu
    Copy the full SHA
    82d1841 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11a3b74 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2019

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

Commits on Jul 27, 2019

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

Commits on Jul 28, 2019

  1. review comments

    estebank committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    01ba0e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b57f68 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    744ec88 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfdfa85 View commit details
    Browse the repository at this point in the history
  5. Add 'ast::PatKind::Rest'.

    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    f7c75cc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ff77ef2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    633c997 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    12250a2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b02941f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8ba5f49 View commit details
    Browse the repository at this point in the history
  11. Adjust lowering of Tuple/TupleStruct patterns.

    - Make sure we ban duplicate '..'.
    - Avoid ICEs on PatKind::Rest that doesn't generate HIR nodes.
    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    d5df1e0 View commit details
    Browse the repository at this point in the history
  12. Adjust lowering of Slice patterns.

    - Make sure extra `x @ ..` do not cause ICEs.
    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    694b3c3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0a40ef2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7aeb4b7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7e1b671 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    62b29a1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    974413f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2f55354 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2411134 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    f6c8234 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    891a736 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    75da43d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    91c8b53 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    e725ea2 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    06e5ae5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e3cdadd View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7c0b1da View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cec8649 View commit details
    Browse the repository at this point in the history
  29. Adjust documentation in HAIR.

    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    984f9db View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    1060513 View commit details
    Browse the repository at this point in the history
  31. --bless tests after rebase.

    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    acc6a6d View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    59b5dae View commit details
    Browse the repository at this point in the history
  33. Use AstP more in lowering.

    Centril committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    397a027 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    becdba8 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    5f4dd1d View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    18ccd6a View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    8774207 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    d33696f View commit details
    Browse the repository at this point in the history
  39. Add test for issue-50900

    JohnTitor committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    29a00ef View commit details
    Browse the repository at this point in the history
  40. Move to src/test/ui/match/

    JohnTitor committed Jul 28, 2019
    Configuration menu
    Copy the full SHA
    15307ca View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    84c6d30 View commit details
    Browse the repository at this point in the history
  42. Rollup merge of rust-lang#62550 - Centril:rest-patterns, r=petrochenkov

    Implement RFC 2707 + Parser recovery for range patterns
    
    Implement rust-lang/rfcs#2707.
    
    - Add a new basic syntactic pattern form `ast::PatKind::Rest` (parsed as `..` or `DOTDOT`) and simplify `ast::PatKind::{Slice, Tuple, TupleStruct}` as a result.
    
    - Lower `ast::PatKind::Rest` in combination with the aforementioned `PatKind` variants as well as `PatKind::Ident`. The HIR remains unchanged for now (may be advisable to make slight adjustments later).
    
    - Refactor `parser.rs` wrt. parsing sequences and lists of things in the process.
    
    - Add parser recovery for range patterns of form `X..`, `X..=`, `X...`, `..Y`, `..=Y`, and `...Y`.
       This should make it easy to actually support these patterns semantically later if we so desire.
    
    cc rust-lang#62254
    
    r? @petrochenkov
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    75e23ff View commit details
    Browse the repository at this point in the history
  43. Rollup merge of rust-lang#62759 - mark-i-m:rustc-guide-toolstate-chec…

    …k, r=kennytm
    
    Actually add rustc-guide to toolstate, don't fail builds for the guide
    
    cc @ehuss
    
    r? @kennytm
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    2826bdc View commit details
    Browse the repository at this point in the history
  44. Rollup merge of rust-lang#62806 - mati865:clippy, r=TimNN

    Fix few Clippy warnings
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    b405aa2 View commit details
    Browse the repository at this point in the history
  45. Rollup merge of rust-lang#62974 - RalfJung:crossbeam, r=alexcrichton

    bump crossbeam-epoch dependency
    
    The new crossbeam-epoch release depends on a memoffset with a whole bunch of soundness holes fixed.
    
    The old memoffset is still indirectly depended on (at least) by rustc-rayon, though -- a crate that looks rather unmaintained (no change in more than a year).
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    4880297 View commit details
    Browse the repository at this point in the history
  46. Rollup merge of rust-lang#63051 - estebank:borrow-ice, r=matthewjasper

    Avoid ICE when referencing desugared local binding in borrow error
    
    To avoid leaking the names of local bindings from expressions like for loops, rust-lang#60984 explicitly ignored them, but an assertion that `LocalKind::Var` *must* have a name would trigger an ICE.
    
    Before this change, the binding generated by desugaring the for loop would leak into the diagnostic (rust-lang#63027):
    ```
    error[E0515]: cannot return value referencing local variable `__next`
      --> return-local-binding-from-desugaring.rs:LL:CC
       |
    LL |     for ref x in xs {
       |         ----- `__next` is borrowed here
    ...
    LL |     result
       |     ^^^^^^ returns a value referencing data owned by the current function
    ```
    
    Ideally `LocalKind` would carry more information to more accurately explain the problem, but for now, in order to avoid the ICE (fix rust-lang#63026), we accept `LocalKind::Var` without a name and produce the following output:
    
    ```
    error[E0515]: cannot return value referencing local binding
      --> $DIR/return-local-binding-from-desugaring.rs:30:5
       |
    LL |     for ref x in xs {
       |                  -- local binding introduced here
    ...
    LL |     result
       |     ^^^^^^ returns a value referencing data owned by the current function
    ```
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    a558668 View commit details
    Browse the repository at this point in the history
  47. Rollup merge of rust-lang#63061 - Centril:constantly-improving, r=sco…

    …ttmcm
    
    In which we constantly improve the Vec(Deque) array PartialEq impls
    
    Use the same approach as in rust-lang#62435 as sanctioned by rust-lang#61415 (comment).
    
    r? @scottmcm
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    4b3a017 View commit details
    Browse the repository at this point in the history
  48. Rollup merge of rust-lang#63067 - JohnTitor:test-for-50900, r=Centril

    Add test for issue-50900
    
    Closes rust-lang#50900
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    d17ad1b View commit details
    Browse the repository at this point in the history
  49. Rollup merge of rust-lang#63071 - rust-lang:some-new-labels, r=pietro…

    …albini
    
    Allow rustbot to add `F-*` + `requires-nightly`.
    
    r? @pietroalbini
    Centril authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    370aa19 View commit details
    Browse the repository at this point in the history