diff --git a/hw/latest/registers/src/axi_dma.rs b/hw/latest/registers/src/axi_dma.rs index e480946a79..4294488a05 100644 --- a/hw/latest/registers/src/axi_dma.rs +++ b/hw/latest/registers/src/axi_dma.rs @@ -1786,7 +1786,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -1828,7 +1828,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -1870,7 +1870,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/doe.rs b/hw/latest/registers/src/doe.rs index 887d9966f1..43125893f5 100644 --- a/hw/latest/registers/src/doe.rs +++ b/hw/latest/registers/src/doe.rs @@ -1111,7 +1111,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/ecc.rs b/hw/latest/registers/src/ecc.rs index 65805bf7ba..65bf56bd28 100644 --- a/hw/latest/registers/src/ecc.rs +++ b/hw/latest/registers/src/ecc.rs @@ -1067,7 +1067,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -1357,7 +1357,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/hmac.rs b/hw/latest/registers/src/hmac.rs index f54e403d70..289e8d3751 100644 --- a/hw/latest/registers/src/hmac.rs +++ b/hw/latest/registers/src/hmac.rs @@ -1501,7 +1501,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/lib.rs b/hw/latest/registers/src/lib.rs index 2f86558b38..50467c1477 100644 --- a/hw/latest/registers/src/lib.rs +++ b/hw/latest/registers/src/lib.rs @@ -518,7 +518,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -808,7 +808,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/mbox.rs b/hw/latest/registers/src/mbox.rs index cb68793794..379260d6ed 100644 --- a/hw/latest/registers/src/mbox.rs +++ b/hw/latest/registers/src/mbox.rs @@ -527,7 +527,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 8 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -581,7 +581,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x10 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/mldsa.rs b/hw/latest/registers/src/mldsa.rs index cf14306c9d..1b09d97d79 100644 --- a/hw/latest/registers/src/mldsa.rs +++ b/hw/latest/registers/src/mldsa.rs @@ -950,7 +950,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 8 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } @@ -1240,7 +1240,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/sha512.rs b/hw/latest/registers/src/sha512.rs index 3e5dbeeb30..23b0c0e58f 100644 --- a/hw/latest/registers/src/sha512.rs +++ b/hw/latest/registers/src/sha512.rs @@ -1535,7 +1535,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 0x100 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/sha512_acc.rs b/hw/latest/registers/src/sha512_acc.rs index 4692be8700..92971e5008 100644 --- a/hw/latest/registers/src/sha512_acc.rs +++ b/hw/latest/registers/src/sha512_acc.rs @@ -1352,7 +1352,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/hw/latest/registers/src/soc_ifc.rs b/hw/latest/registers/src/soc_ifc.rs index 0c51edbe0a..280c1d65fd 100644 --- a/hw/latest/registers/src/soc_ifc.rs +++ b/hw/latest/registers/src/soc_ifc.rs @@ -4652,7 +4652,7 @@ pub mod enums { #[inline(always)] fn try_from(val: u32) -> Result { if val < 4 { - Ok(unsafe { core::mem::transmute(val) }) + Ok(unsafe { core::mem::transmute::(val) }) } else { Err(()) } diff --git a/ureg/lib/codegen/src/lib.rs b/ureg/lib/codegen/src/lib.rs index 862fe95387..0c3ea4e7e6 100644 --- a/ureg/lib/codegen/src/lib.rs +++ b/ureg/lib/codegen/src/lib.rs @@ -212,7 +212,7 @@ fn generate_enum(e: &Enum) -> TokenStream { // This transmute is safe because the check above ensures // that the value has a corresponding enum variant, and the // enum is using repr(u32). - Ok(unsafe { core::mem::transmute(val) } ) + Ok(unsafe { core::mem::transmute::(val) } ) } else { Err(()) }