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 10 pull requests #98367

Closed
wants to merge 31 commits into from
Closed

Commits on May 29, 2022

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

Commits on Jun 18, 2022

  1. Configuration menu
    Copy the full SHA
    8b7299d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44364dc View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    7cefa8f View commit details
    Browse the repository at this point in the history
  2. Formatting

    r-raymond committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    0b6e6e3 View commit details
    Browse the repository at this point in the history
  3. More formatting

    r-raymond committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    391f800 View commit details
    Browse the repository at this point in the history
  4. Address comments

    r-raymond committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    cf1238e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    08650fb View commit details
    Browse the repository at this point in the history
  6. Documentation typo

    r-raymond committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    0157593 View commit details
    Browse the repository at this point in the history
  7. Add safety comments

    r-raymond committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    fa1656e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    09d937e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cb20e25 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    43c6f9c View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. UnsafeCell -> RwLock

    r-raymond committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    048a801 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Configuration menu
    Copy the full SHA
    ac38258 View commit details
    Browse the repository at this point in the history
  2. update cpu-usage-over-time-plot script

    fix tidy checks and correct cpu-usage-over-time-plot script
    seanpray committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    8eb7ddf View commit details
    Browse the repository at this point in the history
  3. Fix typo

    lucasthormann authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    c9340ec View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ca8b69 View commit details
    Browse the repository at this point in the history
  5. hedge our bets

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    RalfJung and joshtriplett authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    4768bfc View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Configuration menu
    Copy the full SHA
    52409c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e53b2ba View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#95446 - notseanray:master, r=Mark-Simulacrum

    update CPU usage script
    
    I've made slight changes to the CPU usage plot script with updated links from the [ci2 aws instance](https://rust-lang-ci2.s3.amazonaws.com/).
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    ecda292 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#96768 - m-ou-se:futex-fuchsia, r=tmandry

    Use futex based thread parker on Fuchsia.
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    4415af5 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#96820 - r-raymond:master, r=cuviper

    Make RwLockReadGuard covariant
    
    Hi, first time contributor here, if anything is not as expected, please let me know.
    
    `RwLockReadGoard`'s type constructor is invariant. Since it behaves like a smart pointer to an immutable reference, there is no reason that it should not be covariant. Take e.g.
    
    ```
    fn test_read_guard_covariance() {
        fn do_stuff<'a>(_: RwLockReadGuard<'_, &'a i32>, _: &'a i32) {}
        let j: i32 = 5;
        let lock = RwLock::new(&j);
        {
            let i = 6;
            do_stuff(lock.read().unwrap(), &i);
        }
        drop(lock);
    }
    ```
    where the compiler complains that &i doesn't live long enough. If `RwLockReadGuard` is covariant, then the above code is accepted because the lifetime can be shorter than `'a`.
    
    In order for `RwLockReadGuard` to be covariant, it can't contain a full reference to the `RwLock`, which can never be covariant (because it exposes a mutable reference to the underlying data structure). By reducing the data structure to the required pieces of `RwLock`, the rest falls in place.
    
    If there is a better way to do a test that tests successful compilation, please let me know.
    
    Fixes rust-lang#80392
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c7aa270 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#97454 - Mark-Simulacrum:relnotes, r=Mark-Si…

    …mulacrum
    
    Add release notes for 1.62
    
    cc `@rust-lang/release`
    
    r? `@pietroalbini`
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    ffd6b0f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#97516 - RalfJung:atomics, r=joshtriplett

    clarify how Rust atomics correspond to C++ atomics
    
    `@cbeuw` noted in rust-lang/miri#1963 that the correspondence between C++ atomics and Rust atomics is not quite as obvious as one might think, since in Rust I can use `get_mut` to treat previously non-atomic data as atomic. However, I think using C++20 `atomic_ref`, we can establish a suitable relation between the two -- or do you see problems with that `@cbeuw?` (I recall you said there was some issue, but it was deep inside that PR and Github makes it impossible to find...)
    
    Cc `@thomcc;` not sure whom else to ping for atomic memory model things.
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    39520e4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#97818 - compiler-errors:rpit-error-spanned,…

    … r=oli-obk
    
    Point at return expression for RPIT-related error
    
    Certainly this needs some diagnostic refining, but I wanted to show that it was possible first and foremost. Not sure if this is the right approach. Open to feedback.
    
    Fixes rust-lang#80583
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    3543cd7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#97895 - nbdd0121:unlikely, r=estebank

    Simplify `likely!` and `unlikely!` macro
    
    The corresponding intrinsics have long been safe-to-call, so the unsafe block is no longer needed.
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    a07def6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#98005 - compiler-errors:impossible-bounds, …

    …r=Mark-Simulacrum
    
    Add some tests for impossible bounds
    
    Adds test for rust-lang#93008
    Adds test for rust-lang#94680
    Closes rust-lang#94999
    Closes rust-lang#95640
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    5b0093a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#98356 - lucasthormann:patch-1, r=Mark-Simul…

    …acrum
    
    Add missing period
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    824443d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#98363 - RalfJung:btree-test-ref-alloc, r=th…

    …omcc
    
    remove use of &Alloc in btree tests
    
    I missed these in rust-lang#98233.
    
    r? `@thomcc`
    JohnTitor authored Jun 22, 2022
    Configuration menu
    Copy the full SHA
    ae8c200 View commit details
    Browse the repository at this point in the history