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

[beta] Rollup backports #58537

Merged
merged 12 commits into from
Feb 20, 2019
Merged

[beta] Rollup backports #58537

merged 12 commits into from
Feb 20, 2019

Commits on Feb 16, 2019

  1. [BETA] Update cargo

    ehuss committed Feb 16, 2019
    Configuration menu
    Copy the full SHA
    119335e View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2019

  1. Make intern_lazy_const actually intern its argument.

    Currently it just unconditionally allocates it in the arena.
    
    For a "Clean Check" build of the the `packed-simd` benchmark, this
    change reduces both the `max-rss` and `faults` counts by 59%; it
    slightly (~3%) increases the instruction counts but the `wall-time` is
    unchanged.
    
    For the same builds of a few other benchmarks, `max-rss` and `faults`
    drop by 1--5%, but instruction counts and `wall-time` changes are in the
    noise.
    
    Fixes rust-lang#57432, fixes rust-lang#57829.
    nnethercote authored and pietroalbini committed Feb 17, 2019
    Configuration menu
    Copy the full SHA
    94ca417 View commit details
    Browse the repository at this point in the history
  2. Lower constant patterns with ascribed types.

    This commit fixes a bug introduced by rust-lang#55937 which started checking user
    type annotations for associated type patterns. Where lowering a
    associated constant expression would previously return a
    `PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType`
    with a `PatternKind::Constant` inside, this commit unwraps that to
    access the constant pattern inside and behaves as before.
    davidtwco authored and pietroalbini committed Feb 17, 2019
    Configuration menu
    Copy the full SHA
    04d6d7b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a1b7da View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4120ee View commit details
    Browse the repository at this point in the history
  5. Do not initiate nested probe within assemble_probe.

    In particular, the table entries (associated with type-variables
    created during the probe) must persist as long as the candidates
    assembled during the probe. If you make a nested probe without
    creating a nested `ProbeContext`, the table entries are popped at the
    end of the nested probe, while the type-variables would leak out via
    the assembled candidates attached to `self` (the outer
    `ProbeContext`). This causes an ICE (*if you are lucky*)!
    pnkfelix authored and pietroalbini committed Feb 17, 2019
    Configuration menu
    Copy the full SHA
    5f39bc7 View commit details
    Browse the repository at this point in the history
  6. unit test for issue 57673.

    pnkfelix authored and pietroalbini committed Feb 17, 2019
    Configuration menu
    Copy the full SHA
    d820e21 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d30f5be View commit details
    Browse the repository at this point in the history
  8. add tests to a few edge cases in method lookup

    These aren't fixed by this PR, but were broken in a few older attempts
    at it. Make sure they don't regress.
    arielb1 authored and pietroalbini committed Feb 17, 2019
    Configuration menu
    Copy the full SHA
    552e2fa View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    062e817 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e583c62 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bbe9e21 View commit details
    Browse the repository at this point in the history