-
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 5 pull requests #99407
Rollup of 5 pull requests #99407
Commits on Jul 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5f5ca88 - Browse repository at this point
Copy the full SHA 5f5ca88View commit details
Commits on Jul 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 13ab796 - Browse repository at this point
Copy the full SHA 13ab796View commit details -
Windows: Use
FindFirstFileW
ifmetadata
failsUsually opening a file handle with access set to metadata only will always succeed, even if the file is locked. However some special system files, such as `C:\hiberfil.sys`, are locked by the system in a way that denies even that. So as a fallback we try reading the cached metadata from the directory.
Configuration menu - View commit details
-
Copy full SHA for 8d4adad - Browse repository at this point
Copy the full SHA 8d4adadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d06504 - Browse repository at this point
Copy the full SHA 2d06504View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f5bcb3 - Browse repository at this point
Copy the full SHA 5f5bcb3View commit details
Commits on Jul 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 080a53a - Browse repository at this point
Copy the full SHA 080a53aView commit details
Commits on Jul 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b631983 - Browse repository at this point
Copy the full SHA b631983View commit details
Commits on Jul 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e6be52b - Browse repository at this point
Copy the full SHA e6be52bView commit details
Commits on Jul 18, 2022
-
Rollup merge of rust-lang#98839 - 5225225:assert_transmute_copy_size,…
… r=thomcc Add assertion that `transmute_copy`'s U is not larger than T This is called out as a safety requirement in the docs, but because knowing this can be done at compile time and constant folded (just like the `align_of` branch is removed), we can just panic here. I've looked at the asm (using `cargo-asm`) of a function that both is correct and incorrect, and the panic is completely removed, or is unconditional, without needing build-std. I don't expect this to cause much breakage in the wild. I scanned through https://miri.saethlin.dev/ub for issues that would look like this (error: Undefined Behavior: memory access failed: alloc1768 has size 1, so pointer to 8 bytes starting at offset 0 is out-of-bounds), but couldn't find any. That doesn't rule out it happening in crates tested that fail earlier for some other reason, though, but it indicates that doing this is rare, if it happens at all. A crater run for this would need to be build and test, since this is a runtime thing. Also added a few more transmute_copy tests.
Configuration menu - View commit details
-
Copy full SHA for 5be2a2a - Browse repository at this point
Copy the full SHA 5be2a2aView commit details -
Rollup merge of rust-lang#98916 - ChrisDenton:hiberfil.sys, r=thomcc
Windows: Use `FindFirstFileW` for getting the metadata of locked system files Fixes rust-lang#96980 Usually opening a file handle with access set to metadata only will always succeed, even if the file is locked. However some special system files, such as `C:\hiberfil.sys`, are locked by the system in a way that denies even that. So as a fallback we try reading the cached metadata from the directory. Note that the test is a bit iffy. I don't know if `hiberfil.sys` actually exists in the CI. r? rust-lang/libs
Configuration menu - View commit details
-
Copy full SHA for 3841b58 - Browse repository at this point
Copy the full SHA 3841b58View commit details -
Rollup merge of rust-lang#99198 - RalfJung:alloc-null-ptr, r=JohnTitor
add missing null ptr check in alloc example `alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.
Configuration menu - View commit details
-
Copy full SHA for dea8be9 - Browse repository at this point
Copy the full SHA dea8be9View commit details -
Rollup merge of rust-lang#99347 - compiler-errors:opaque-type-key-loc…
…al-def-id, r=oli-obk Use `LocalDefId` in `OpaqueTypeKey` Addresses a `// FIXME(oli-obk): make this a LocalDefId` r? ```@oli-obk```
Configuration menu - View commit details
-
Copy full SHA for a4c47bd - Browse repository at this point
Copy the full SHA a4c47bdView commit details -
Rollup merge of rust-lang#99378 - RalfJung:box-early-return, r=oli-obk
interpret/visitor: add missing early return I forgot to add this when adding the special `Box` handling branch. r? `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 54c6c97 - Browse repository at this point
Copy the full SHA 54c6c97View commit details