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 5 pull requests #97835

Merged
merged 12 commits into from
Jun 7, 2022
Merged

Rollup of 5 pull requests #97835

merged 12 commits into from
Jun 7, 2022

Commits on May 23, 2022

  1. Fix precise field capture of univariant enums

    When constructing a MIR from a THIR field expression, introduce an
    additional downcast projection before accessing a field of an enum.
    
    When rebasing a place builder on top of a captured place, account for
    the fact that a single HIR enum field projection corresponds to two MIR
    projection elements: a downcast element and a field element.
    tmiasko committed May 23, 2022
    Configuration menu
    Copy the full SHA
    0e7eca7 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. ⬆️ rust-analyzer

    lnicola committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    2e8508f View commit details
    Browse the repository at this point in the history
  2. Remove confusing sentence from Mutex docs

    The docs were saying something about "statically initializing" the
    mutex, and it's not clear what this means. Remove that part to avoid
    confusion.
    Noratrieb committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    83af085 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    232c2d6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5799e7d View commit details
    Browse the repository at this point in the history
  5. Update library/std/src/sync/mutex.rs

    Co-authored-by: Weiyi Wang <wwylele@gmail.com>
    Dylan-DPC and wwylele committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    e224185 View commit details
    Browse the repository at this point in the history
  6. Improve the safety docs for CStr

    Namely, the two functions `from_ptr` and `from_bytes_with_nul_unchecked`.
    Before, this functions didn't state the requirements clearly enough,
    and I was not immediately able to find them like for other functions.
    
    This doesn't change the content of the docs, but simply rewords them for
    clarity.
    Noratrieb committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    0dda42b View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#95948 - Nilstrieb:improve-cstr-safety-docs,…

    … r=RalfJung
    
    Improve the safety docs for `CStr`
    
    Namely, the two functions `from_ptr` and `from_bytes_with_nul_unchecked`.
    Before, these functions didn't state the requirements clearly enough,
    and I was not immediately able to find them like for other functions.
    
    This doesn't change the content of the docs, but simply rewords them for
    clarity.
    
    note: I'm not entirely sure about the '`ptr` must be valid for reads of `u8`.', there might be room for improvement for this (and maybe for the other docs as well 😄)
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    a9c4a7e View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#97325 - tmiasko:capture-enum-field, r=arora…

    …-aman
    
    Fix precise field capture of univariant enums
    
    When constructing a MIR from a THIR field expression, introduce an
    additional downcast projection before accessing a field of an enum.
    
    When rebasing a place builder on top of a captured place, account for
    the fact that a single HIR enum field projection corresponds to two MIR
    projection elements: a downcast element and a field element.
    
    Fixes rust-lang#95271.
    Fixes rust-lang#96299.
    Fixes rust-lang#96512.
    Fixes rust-lang#97378.
    
    r? ``@nikomatsakis`` ``@arora-aman``
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    fd76e0e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#97817 - lnicola:rust-analyzer-2022-06-07, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? ``@ghost``
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    32d945d View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#97821 - Nilstrieb:mutex-docs, r=Dylan-DPC

    Remove confusing sentence from `Mutex` docs
    
    The docs were saying something about "statically initializing" the
    mutex, and it's not clear what this means. Remove that part to avoid
    confusion.
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    f12605b View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#97826 - GuillaumeGomez:rustdoc-gui-tests-in…

    …fo, r=Dylan-DPC
    
    Add more information for rustdoc-gui tests
    
    It was missing `--no-sandbox` in the `--help` message and the README was a bit outdated.
    
    cc `@jsha` (I recall you asking some questions about passing arguments to the rustdoc gui tester so here it).
    
    r? `@notriddle`
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    4851ec7 View commit details
    Browse the repository at this point in the history