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 7 pull requests #69990

Closed
wants to merge 21 commits into from

Commits on Feb 25, 2020

  1. Remove sip::Hasher::short_write.

    `sip::Hasher::short_write` is currently unused. It is called by
    `sip::Hasher::write_{u8,usize}`, but those methods are also unused,
    because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement
    any of the `write_xyz` methods, so all their write operations end up
    calling `sip::Hasher::write`.
    
    (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write`
    and running the tests -- they all passed.)
    
    The alternative would be to add all the missing `write_xyz` methods.
    This does give some significant speed-ups, but it hurts compile times a
    little in some cases. See rust-lang#69152 for details. This commit does the
    conservative thing and doesn't change existing behaviour.
    nnethercote committed Feb 25, 2020
    Configuration menu
    Copy the full SHA
    54d1c50 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2020

  1. Configuration menu
    Copy the full SHA
    3ba89e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db75b6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f1ca87 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a9cc010 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    33600e4 View commit details
    Browse the repository at this point in the history
  6. Write backtrace fmt test using relative paths

    For some reason the absolute paths were formatted differently on the
    armhf-gnu target.
    
        thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
          left: `"Backtrace [\n    { fn: \"__rust_maybe_catch_panic\" },\n    { fn: \"std::rt::lang_start_internal\", file: \"./rust/rt.rs\", line: 300 },\n    { fn: \"std::rt::lang_start\", file: \"./rust/rt.rs\", line: 400 },\n]"`,
         right: `"Backtrace [\n    { fn: \"__rust_maybe_catch_panic\" },\n    { fn: \"std::rt::lang_start_internal\", file: \"/rust/rt.rs\", line: 300 },\n    { fn: \"std::rt::lang_start\", file: \"/rust/rt.rs\", line: 400 },\n]"`', src/libstd/backtrace.rs:486:5
    dtolnay committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    a2364dc View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. Compute the correct layout for variants of uninhabited enums and read…

    …d a long lost assertion
    
    This reverts part of commit 9712fa4.
    oli-obk committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    cdc7304 View commit details
    Browse the repository at this point in the history
  2. Comment nits

    Co-Authored-By: Ralf Jung <[email protected]>
    oli-obk and RalfJung authored Mar 11, 2020
    Configuration menu
    Copy the full SHA
    ec88ffa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74608c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    543832b View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2020

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

Commits on Mar 13, 2020

  1. Add self to .mailmap

    kraai committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    40ffcc2 View commit details
    Browse the repository at this point in the history
  2. Fix abort-on-eprintln during process shutdown

    This commit fixes an issue where if `eprintln!` is used in a TLS
    destructor it can accidentally cause the process to abort. TLS
    destructors are executed after `main` returns on the main thread, and at
    this point we've also deinitialized global `Lazy` values like those
    which store the `Stderr` and `Stdout` internals. This means that despite
    handling TLS not being accessible in `eprintln!`, we will fail due to
    not being able to call `stderr()`. This means that we'll double-panic
    quickly because panicking also attempt to write to stderr.
    
    The fix here is to reimplement the global stderr handle to avoid the
    need for destruction. This avoids the need for `Lazy` as well as the
    hidden panic inside of the `stderr` function.
    
    Overall this should improve the robustness of printing errors and/or
    panics in weird situations, since the `stderr` accessor should be
    infallible in more situations.
    alexcrichton committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    c274e07 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2020

  1. Rollup merge of rust-lang#69122 - dtolnay:backtrace, r=cramertj

    Backtrace Debug tweaks
    
    - Change Debug representation of disabled and unsupported backtraces to use \<placeholder\> style, same as what we do for debug printing locked mutexes and mutably borrowed refcells;
    
        ```diff
        - Error { msg: "...", backtrace: disabled backtrace }
        + Error { msg: "...", backtrace: <disabled> }
        ```
    
    - Remove quotes around unresolved symbol names;
    
        ```diff
        - Backtrace [{ fn: "<unknown>" }]
        + Backtrace [{ fn: <unknown> }]
        ```
    
    - Add quotes around file paths;
    
        ```diff
        - Backtrace [{ fn: "krate::main", file: /path/to/main.rs, line: 10 }]
        + Backtrace [{ fn: "krate::main", file: "/path/to/main.rs", line: 10 }]
        ```
    
    - Add test.
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    570edd0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#69471 - nnethercote:rm-sip-Hasher-short_wri…

    …te, r=dtolnay
    
    Remove `sip::Hasher::short_write`.
    
    `sip::Hasher::short_write` is currently unused. It is called by
    `sip::Hasher::write_{u8,usize}`, but those methods are also unused,
    because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement
    any of the `write_xyz` methods, so all their write operations end up
    calling `sip::Hasher::write`.
    
    (I confirmed this by inserting a `panic!` in `sip::Hasher::short_write`
    and running the tests -- they all passed.)
    
    The alternative would be to add all the missing `write_xyz` methods.
    This does give some significant speed-ups, but it hurts compile times a
    little in some cases. See rust-lang#69152 for details. This commit does the
    conservative thing and doesn't change existing behaviour.
    
    r? @rust-lang/libs
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    f8756ac View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#69768 - oli-obk:union_field_ice, r=eddyb,Ra…

    …lfJung
    
    Compute the correct layout for variants of uninhabited enums
    
    r? @eddyb
    cc @RalfJung
    
    fixes rust-lang#69191
    cc rust-lang#69763
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    8f06c62 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#69929 - cuviper:unicode-13.0.0, r=Mark-Simu…

    …lacrum
    
    Regenerate tables for Unicode 13.0.0
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    af0cdbf View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#69942 - estebank:sized-verbose-sugg, r=matt…

    …hewjasper
    
    Increase verbosity when suggesting subtle code changes
    
    Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion.
    
    Fix rust-lang#69243.
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    b8d85a3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#69955 - alexcrichton:stderr-infallible, r=s…

    …fackler
    
    Fix abort-on-eprintln during process shutdown
    
    This commit fixes an issue where if `eprintln!` is used in a TLS
    destructor it can accidentally cause the process to abort. TLS
    destructors are executed after `main` returns on the main thread, and at
    this point we've also deinitialized global `Lazy` values like those
    which store the `Stderr` and `Stdout` internals. This means that despite
    handling TLS not being accessible in `eprintln!`, we will fail due to
    not being able to call `stderr()`. This means that we'll double-panic
    quickly because panicking also attempt to write to stderr.
    
    The fix here is to reimplement the global stderr handle to avoid the
    need for destruction. This avoids the need for `Lazy` as well as the
    hidden panic inside of the `stderr` function.
    
    Overall this should improve the robustness of printing errors and/or
    panics in weird situations, since the `stderr` accessor should be
    infallible in more situations.
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    6c44885 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#69987 - kraai:mailmap, r=nikomatsakis

    Add self to .mailmap
    
    The variants are only used for [rust-lang/rust-clippy](https://github.com/rust-lang/rust-clippy), but it seems like <https://thanks.rust-lang.org/> only uses this `.mailmap`.
    Dylan-DPC authored Mar 14, 2020
    Configuration menu
    Copy the full SHA
    9771fdf View commit details
    Browse the repository at this point in the history