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 6 pull requests #99391

Merged
merged 15 commits into from
Jul 18, 2022
Merged

Rollup of 6 pull requests #99391

merged 15 commits into from
Jul 18, 2022

Commits on Jun 29, 2022

  1. Configuration menu
    Copy the full SHA
    a7434da View commit details
    Browse the repository at this point in the history
  2. Only enable new cmpxchg memory orderings in cfg(not(bootstrap)).

    (The bootstrap/beta compiler doesn't support them yet.)
    m-ou-se committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    a898f41 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2022

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

Commits on Jul 17, 2022

  1. Configuration menu
    Copy the full SHA
    23cb89e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26ecd44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a45a60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3024d39 View commit details
    Browse the repository at this point in the history
  5. Fix for rchunks_exact doc

    `rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
    TethysSvensson authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    8c58de5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    98bceb0 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98383 - m-ou-se:remove-memory-order-restric…

    …tions, r=joshtriplett
    
    Remove restrictions on compare-exchange memory ordering.
    
    We currently don't allow the failure memory ordering of compare-exchange operations to be stronger than the success ordering, as was the case in C++11 when its memory model was copied to Rust. However, this restriction was lifted in C++17 as part of [p0418r2](https://wg21.link/p0418r2). It's time  we lift the restriction too.
    
    | Success | Failure | Before | After |
    |---------|---------|--------|-------|
    | Relaxed | Relaxed | ✔️ | ✔️ |
    | Relaxed | Acquire | ❌                | ✔️ |
    | Relaxed | SeqCst  | ❌                | ✔️ |
    | Acquire | Relaxed | ✔️ | ✔️ |
    | Acquire | Acquire | ✔️ | ✔️ |
    | Acquire | SeqCst  | ❌                | ✔️ |
    | Release | Relaxed | ✔️ | ✔️ |
    | Release | Acquire | ❌                | ✔️ |
    | Release | SeqCst  | ❌                | ✔️ |
    | AcqRel  | Relaxed | ✔️ | ✔️ |
    | AcqRel  | Acquire | ✔️ | ✔️ |
    | AcqRel  | SeqCst  | ❌                | ✔️ |
    | SeqCst  | Relaxed | ✔️ | ✔️ |
    | SeqCst  | Acquire | ✔️ | ✔️ |
    | SeqCst  | SeqCst  | ✔️ | ✔️ |
    | \*      | Release | ❌                | ❌                |
    | \*      | AcqRel  | ❌                | ❌                |
    
    Fixes rust-lang#68464
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    796bc7c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#99350 - compiler-errors:issue-99240, r=fee1…

    …-dead
    
    Be more precise when suggesting removal of parens on unit ctor
    
    * Fixes rust-lang#99240 by only suggesting to remove parens on path exprs, not arbitrary expressions with enum type
    * Generalizes by suggesting removal of parens on unit struct, too, because why not?
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    cc35c78 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#99356 - compiler-errors:tait-in-assoc-ty-su…

    …pertraits, r=oli-obk
    
    Do not constraint TAITs when checking impl/trait item compatibility
    
    Check out the UI test for the example.
    
    Open to other approaches to fix this issue -- ideally we _would_ be able to collect this opaque type constraint in a way to use it in `find_opaque_ty_constraints`, so we can report a better mismatch error in the incompatible case, and just allow it in the compatible case. But that seems like a bigger refactor, so I wouldn't want to start it unless someone else thought it was a good idea.
    
    cc rust-lang#99348
    r? ``@oli-obk``
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    3c2175b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#99360 - compiler-errors:issue-99331, r=fee1…

    …-dead
    
    Do not ICE when we have `-Zunpretty=expanded` with invalid ABI
    
    Fixes rust-lang#99331
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f3a458f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#99373 - GuillaumeGomez:source-code-sidebar-…

    …tree-auto-expand, r=notriddle
    
    Fix source code sidebar tree auto-expand
    
    Here is the bug:
    
    ![Screenshot from 2022-07-17 13-32-00](https://user-images.githubusercontent.com/3050060/179397712-bfb1c279-0ed2-4cb5-aef5-05741921bcc3.png)
    
    It was happening because as soon as we found the file (from the URL), every item following it was then opened, even if it wasn't supposed to.
    
    The GUI test ensures that it doesn't happen by adding two nested levels and ensuring only this path is "open".
    
    r? ``@notriddle``
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    7bbb753 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#99374 - TethysSvensson:patch-1, r=Dylan-DPC

    Fix doc for `rchunks_exact`
    
    `rchunks_exact` is not a more optimized version of `chunks`, but of `rchunks`.
    JohnTitor authored Jul 17, 2022
    Configuration menu
    Copy the full SHA
    7c98c92 View commit details
    Browse the repository at this point in the history