mirror of
https://github.com/Noratrieb/stuff.git
synced 2026-01-14 16:35:08 +01:00
lower msrv to 1.31.1
edition 2015 is behind that, I won't touch that
This commit is contained in:
parent
ee7e477006
commit
c52472a874
3 changed files with 6 additions and 6 deletions
|
|
@ -87,7 +87,7 @@ unsafe impl<T> Backend<T> for u64 {
|
|||
}
|
||||
|
||||
macro_rules! impl_backend_2_tuple {
|
||||
(impl for $ty:ty { (*mut T, $int:ident), $num:literal }) => {
|
||||
(impl for $ty:ty { (*mut T, $int:ident), $num:expr }) => {
|
||||
unsafe impl<T> Backend<T> for $ty {
|
||||
// this one keeps the MSB in the pointer address, and the LSB in the integer
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ macro_rules! impl_backend_2_tuple {
|
|||
/// num1 is ptr-sized, num2 is 2*ptr sized
|
||||
#[cfg_attr(target_pointer_width = "64", allow(unused))] // not required on 64 bit
|
||||
macro_rules! impl_backend_3_tuple {
|
||||
(impl for $ty:ty { (*mut T, $int1:ident, $int2:ident), $num1:literal, $num2:literal }) => {
|
||||
(impl for $ty:ty { (*mut T, $int1:ident, $int2:ident), $num1:expr, $num2:expr }) => {
|
||||
unsafe impl<T> Backend<T> for $ty {
|
||||
// this one keeps the MSB in the pointer address, ISB in int1 and the LSB in the int2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue