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 9 pull requests #64115

Closed
wants to merge 42 commits into from
Closed

Commits on Aug 21, 2019

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

Commits on Sep 1, 2019

  1. Configuration menu
    Copy the full SHA
    cab607e View commit details
    Browse the repository at this point in the history
  2. deduplicate code

    estebank committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    aae2b24 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9ce33c View commit details
    Browse the repository at this point in the history
  4. librustc_errors: Extract sugg/subst handling into method

    An initial refactoring before working on rust-lang#61809.
    
    This moves the whole block into a method so that it can be reused in the
    annotate-snippet output. It's already used in the new emitter, but
    there's no UI tests with suggestions included in this PR.
    
    A first look at some UI tests with suggestions showed that there's some
    more work to do in [annotate-snippet-rs][annotate-snippet-rs] before the
    new output is closer to the current one.
    phansch committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    84ccbe2 View commit details
    Browse the repository at this point in the history
  5. Fix const_err with -(-0.0)

    JohnTitor committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    35c9e5f View commit details
    Browse the repository at this point in the history
  6. Add opt-level check

    JohnTitor committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    3a6aada View commit details
    Browse the repository at this point in the history
  7. following the same style

    Guanqun Lu committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    ab12dfe View commit details
    Browse the repository at this point in the history
  8. Add overflow_check check

    JohnTitor committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    4a0872b View commit details
    Browse the repository at this point in the history
  9. review comments

    estebank committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    f53c217 View commit details
    Browse the repository at this point in the history
  10. Fix overflow_check

    JohnTitor committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    8e9825a View commit details
    Browse the repository at this point in the history
  11. review comments

    estebank committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    141f5a7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0cd9c16 View commit details
    Browse the repository at this point in the history
  13. Fix tests again

    JohnTitor committed Sep 1, 2019
    Configuration menu
    Copy the full SHA
    a937d8c View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2019

  1. Configuration menu
    Copy the full SHA
    991f436 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52c68d1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c83d64 View commit details
    Browse the repository at this point in the history
  4. Create buffers in top-level rendering

    This avoids needlessly creating and threading the buffers through when
    we only use them once.
    Mark-Simulacrum committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    a076816 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8850cb5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a3539f9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d869748 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    14fcaa1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ca2801f View commit details
    Browse the repository at this point in the history
  10. Implement Print for FnOnce(&mut Buffer)

    This means that callers can pass in a closure like
    `|buf| some_function(..., &mut buf)` and pass in arbitrary arguments to
    that function without complicating the trait definition. We also keep
    the impl for str and String, since it's useful to be able to just pass
    in "" or format!("{}"...) results in some cases.
    
    This changes Print's definition to take self, instead of &self, because
    otherwise FnOnce cannot be called directly. We could instead take FnMut
    or even Fn, but that seems like it'd merely complicate matters -- most
    of the time, the FnOnce does not constrain us at all anyway. If it does,
    a custom Print impl for &'_ SomeStruct is not all that painful.
    Mark-Simulacrum committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    2367975 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8c06e79 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6ab9b32 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6165313 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a57f00d View commit details
    Browse the repository at this point in the history
  15. Settings to function

    Mark-Simulacrum committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    cd92ed2 View commit details
    Browse the repository at this point in the history
  16. AllTypes to function

    Mark-Simulacrum committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    b2eb65b View commit details
    Browse the repository at this point in the history
  17. Item to function

    Mark-Simulacrum committed Sep 2, 2019
    Configuration menu
    Copy the full SHA
    31391ca View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a9c6ef6 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    dd323f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2019

  1. Rollup merge of rust-lang#63774 - chocol4te:fix_63707, r=GuillaumeGomez

    Fix `window.hashchange is not a function`
    
    Closes rust-lang#63707.
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    cdc821f View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#64044 - Mark-Simulacrum:rustdoc-clean-2, r=…

    …GuillaumeGomez
    
    Rustdoc: formatting to buffers
    
    This should be reviewed commit-by-commit.
    
    I've not attempted to fully flesh out what the end state of this PR could look like yet as I wanted to get it up for some early feedback (I already think this has some wins, too, so we could land it as-is).
    
    The primary idea with `Buffer` is that it internally tracks whether we're printing to HTML or text, and the goal is that eventually instead of branch on `fmt.alternate()` anywhere, we'd call a helper like `buf.nbsp()` which would either return ` ` or ` ` depending on the target we're printing to. Obviously, that's not included in this PR, in part because it was already getting quite big.
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    85baeec View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#64049 - estebank:if-else-type-err, r=Centril

    Emit a single error on if expr with expectation and no else clause
    
    Fix rust-lang#60254.
    
    r? @Centril
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    781f533 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#64056 - estebank:arbitrary-self-types, r=Ce…

    …ntril
    
    Account for arbitrary self types in E0599
    
    Fix rust-lang#62373
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    43eac83 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#64058 - phansch:refactor_out_method, r=este…

    …bank
    
    librustc_errors: Extract sugg/subst handling into method
    
    An initial refactoring before working on rust-lang#61809.
    
    This moves the whole block into a method so that it can be reused in the
    annotate-snippet emitter. The method is already used in the new emitter, but
    there's no UI tests with suggestions included in this PR.
    
    A first look at some UI tests with suggestions showed that there's some
    more work to do in [annotate-snippet-rs][annotate-snippet-rs] before the new output is closer to the
    current one, so I opted to do that in a second step.
    
    r? @estebank
    
    [annotate-snippet-rs]: https://github.com/rust-lang/annotate-snippets-rs
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    dd8d419 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#64063 - JohnTitor:fix-const-err, r=oli-obk

    Fix const_err with `-(-0.0)`
    
    Fixes rust-lang#64059
    
    r? @oli-obk
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    c1832a6 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#64071 - guanqun:style-fix, r=Centril

    use just one name when parameters and fields are the same
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    ed13e27 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#64096 - GuillaumeGomez:theme-regex-fix, r=M…

    …ark-Simulacrum
    
    Fix regex replacement in theme detection
    
    Fixes rust-lang#64061.
    
    This is sadly a lot of bad luck: after making the changes and re-build the docs, I just forgot to force reload the page. Hence having the old (working) version with two replacements instead of the failing regex. Sorry again about that...
    
    cc @fenhl
    r? @Mark-Simulacrum
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    3e427d9 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#64104 - Mark-Simulacrum:intrinsic-fn-ptr-ic…

    …e, r=estebank
    
    Emit error on intrinsic to fn ptr casts
    
    I'm not sure if a type error is the best way of doing this but it seemed like a relatively correct place to do it, and I expect this is a pretty rare case to hit anyway.
    
    Fixes rust-lang#15694
    Centril committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    0de3668 View commit details
    Browse the repository at this point in the history