-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Constify is_aligned
via align_offset
#102795
Constify is_aligned
via align_offset
#102795
Commits on Nov 19, 2022
-
Lukas Markeffsky committed
Nov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for f13c4f4 - Browse repository at this point
Copy the full SHA f13c4f4View commit details -
unify inherent impls of
CompileTimeEvalContext
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for f770fec - Browse repository at this point
Copy the full SHA f770fecView commit details -
make const
align_offset
usefulLukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 211743b - Browse repository at this point
Copy the full SHA 211743bView commit details -
add coretests for const
align_offset
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 8cf6b16 - Browse repository at this point
Copy the full SHA 8cf6b16View commit details -
constify
pointer::is_aligned{,_to}
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 6f6320a - Browse repository at this point
Copy the full SHA 6f6320aView commit details -
Lukas Markeffsky committed
Nov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 2ef9a8a - Browse repository at this point
Copy the full SHA 2ef9a8aView commit details -
mark
align_offset
as#[must_use]
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 24e8806 - Browse repository at this point
Copy the full SHA 24e8806View commit details -
don't call
align_offset
during const eval, everLukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for a906f6c - Browse repository at this point
Copy the full SHA a906f6cView commit details -
Lukas Markeffsky committed
Nov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 093c02e - Browse repository at this point
Copy the full SHA 093c02eView commit details -
* `cfg` only the body of `align_offset` * put explicit panics back * explain why `ptr.align_offset(align) == 0` is slow
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for df0bcfe - Browse repository at this point
Copy the full SHA df0bcfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4696e89 - Browse repository at this point
Copy the full SHA 4696e89View commit details -
always use
align_offset
inis_aligned_to
+ add assembly testLukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for daccb8c - Browse repository at this point
Copy the full SHA daccb8cView commit details -
* Fix doc examples for Platforms with underaligned integer primitives. * Mutable pointer doc examples use mutable pointers. * Fill out tracking issue. * Minor formatting changes.
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 8a60536 - Browse repository at this point
Copy the full SHA 8a60536View commit details -
replace potential ICE with graceful error (
no_core
only)Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 60f352f - Browse repository at this point
Copy the full SHA 60f352fView commit details -
Lukas Markeffsky committed
Nov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 8717455 - Browse repository at this point
Copy the full SHA 8717455View commit details -
fix const
align_offset
implementationLukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 9e5d497 - Browse repository at this point
Copy the full SHA 9e5d497View commit details -
Revert "don't call
align_offset
during const eval, ever"This reverts commit f3a577bfae376c0222e934911865ed14cddd1539.
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 3d7e9c4 - Browse repository at this point
Copy the full SHA 3d7e9c4View commit details -
Update comment on pointer-to-usize transmute
Co-authored-by: Ralf Jung <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e90d15b - Browse repository at this point
Copy the full SHA e90d15bView commit details -
Lukas Markeffsky committed
Nov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 53c2ee8 - Browse repository at this point
Copy the full SHA 53c2ee8View commit details -
* fix allocation alignment for 16bit platforms * add edge case where `stride % align != 0` on pointers with provenance
Lukas Markeffsky committedNov 19, 2022 Configuration menu - View commit details
-
Copy full SHA for c9c017d - Browse repository at this point
Copy the full SHA c9c017dView commit details