-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rollup of 5 pull requests #97834
Commits on May 23, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for 0e7eca7 - Browse repository at this point
Copy the full SHA 0e7eca7View commit details
Commits on Jun 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d140d05 - Browse repository at this point
Copy the full SHA d140d05View commit details
Commits on Jun 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2e8508f - Browse repository at this point
Copy the full SHA 2e8508fView commit details -
Remove confusing sentence from
Mutex
docsThe docs were saying something about "statically initializing" the mutex, and it's not clear what this means. Remove that part to avoid confusion.
Configuration menu - View commit details
-
Copy full SHA for 83af085 - Browse repository at this point
Copy the full SHA 83af085View commit details -
Update library/std/src/sync/mutex.rs
Co-authored-by: Weiyi Wang <wwylele@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e224185 - Browse repository at this point
Copy the full SHA e224185View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 0dda42b - Browse repository at this point
Copy the full SHA 0dda42bView commit details -
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 😄)
Configuration menu - View commit details
-
Copy full SHA for e404c99 - Browse repository at this point
Copy the full SHA e404c99View commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 33e913a - Browse repository at this point
Copy the full SHA 33e913aView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 82513ea - Browse repository at this point
Copy the full SHA 82513eaView commit details -
Rollup merge of rust-lang#97817 - lnicola:rust-analyzer-2022-06-07, r…
…=lnicola ⬆️ rust-analyzer r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for c1b5d49 - Browse repository at this point
Copy the full SHA c1b5d49View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ff1a2f6 - Browse repository at this point
Copy the full SHA ff1a2f6View commit details