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 #97834

Closed
wants to merge 11 commits into from
Closed

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 2, 2022

  1. Configuration menu
    Copy the full SHA
    d140d05 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. Update library/std/src/sync/mutex.rs

    Co-authored-by: Weiyi Wang <wwylele@gmail.com>
    Dylan-DPC and wwylele authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    e224185 View commit details
    Browse the repository at this point in the history
  4. 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
  5. 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 authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    e404c99 View commit details
    Browse the repository at this point in the history
  6. 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 authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    33e913a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#97597 - tmiasko:simplify-locals-side-effect…

    …s, r=RalfJung,JakobDegen
    
    Preserve unused pointer to address casts
    
    Fixes rust-lang#97421.
    
    cc `@RalfJung`
    Dylan-DPC authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    82513ea View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#97817 - lnicola:rust-analyzer-2022-06-07, r…

    …=lnicola
    
    ⬆️ rust-analyzer
    
    r? `@ghost`
    Dylan-DPC authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    c1b5d49 View commit details
    Browse the repository at this point in the history
  9. 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 authored Jun 7, 2022
    Configuration menu
    Copy the full SHA
    ff1a2f6 View commit details
    Browse the repository at this point in the history