-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 4 pull requests #98923
Rollup of 4 pull requests #98923
Commits on Jun 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b96d1e4 - Browse repository at this point
Copy the full SHA b96d1e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb7cd97 - Browse repository at this point
Copy the full SHA cb7cd97View commit details
Commits on Jul 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ce9e834 - Browse repository at this point
Copy the full SHA ce9e834View commit details
Commits on Jul 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f68e46b - Browse repository at this point
Copy the full SHA f68e46bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9d4b13 - Browse repository at this point
Copy the full SHA b9d4b13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 919b708 - Browse repository at this point
Copy the full SHA 919b708View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0330f8b - Browse repository at this point
Copy the full SHA 0330f8bView commit details
Commits on Jul 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 170b173 - Browse repository at this point
Copy the full SHA 170b173View commit details -
Rollup merge of rust-lang#97712 - RalfJung:untyped, r=scottmcm
ptr::copy and ptr::swap are doing untyped copies The consensus in rust-lang#63159 seemed to be that these operations should be "untyped", i.e., they should treat the data as raw bytes, should work when these bytes violate the validity invariant of `T`, and should exactly preserve the initialization state of the bytes that are being copied. This is already somewhat implied by the description of "copying/swapping size*N bytes" (rather than "N instances of `T`"). The implementations mostly already work that way (well, for LLVM's intrinsics the documentation is not precise enough to say what exactly happens to poison, but if this ever gets clarified to something that would *not* perfectly preserve poison, then I strongly assume there will be some way to make a copy that *does* perfectly preserve poison). However, I had to adjust `swap_nonoverlapping`; after `@scottmcm's` [recent changes](rust-lang#94212), that one (sometimes) made a typed copy. (Note that `mem::swap`, which works on mutable references, is unchanged. It is documented as "swapping the values at two mutable locations", which to me strongly indicates that it is indeed typed. It is also safe and can rely on `&mut T` pointing to a valid `T` as part of its safety invariant.) On top of adding a test (that will be run by Miri), this PR then also adjusts the documentation to indeed stably promise the untyped semantics. I assume this means the PR has to go through t-libs (and maybe t-lang?) FCP. Fixes rust-lang#63159
Configuration menu - View commit details
-
Copy full SHA for 9c66294 - Browse repository at this point
Copy the full SHA 9c66294View commit details -
Rollup merge of rust-lang#98519 - TaKO8Ki:add-head-span-field-to-item…
…-and-impl-item, r=cjgillot Replace some `guess_head_span` with `def_span` This patch fixes a part of rust-lang#97417. r? `@cjgillot`
Configuration menu - View commit details
-
Copy full SHA for 9b2c841 - Browse repository at this point
Copy the full SHA 9b2c841View commit details -
Rollup merge of rust-lang#98856 - GuillaumeGomez:rustdoc-test-rm-fixm…
…e, r=Dylan-DPC Remove FIXME from rustdoc intra-doc test Removed the FIXME. For the `extern crate`, even if `pub` exported, its documentation wasn't rendered so there is no point in keeping it. r? `@notriddle`
Configuration menu - View commit details
-
Copy full SHA for dd4d4bf - Browse repository at this point
Copy the full SHA dd4d4bfView commit details -
Rollup merge of rust-lang#98913 - lnicola:rust-analyzer-2022-07-05, r…
…=lnicola ⬆️ rust-analyzer r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 10e95a6 - Browse repository at this point
Copy the full SHA 10e95a6View commit details