2024-02-19 07:53:53 -06:00
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:35:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute([1u16, 2u16]);
|
|
|
|
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::missing-transmute-annotations` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_transmute_annotations)]`
|
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:37:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute::<_, _>([1u16, 2u16]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:39:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute::<_, i32>([1u16, 2u16]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:41:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute::<[u16; 2], _>([1u16, 2u16]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:44:32
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
|
LL | let x: i32 = bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:46:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]));
|
2024-02-19 07:53:53 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-02-25 11:12:32 -06:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:11:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
|
LL | std::mem::transmute($e)
|
|
|
|
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
|
|
|
...
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = local_bad_transmute!([1u16, 2u16]);
|
|
|
|
| ---------------------------------- in this macro invocation
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in the macro `local_bad_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:54:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute([0i16, 0i16]);
|
|
|
|
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[i16; 2], i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:57:19
|
2024-02-19 07:53:53 -06:00
|
|
|
|
|
2024-03-15 12:42:35 -05:00
|
|
|
LL | i = std::mem::transmute(Foo::A);
|
|
|
|
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<Foo, i32>`
|
2024-02-19 07:53:53 -06:00
|
|
|
|
2024-02-25 11:12:32 -06:00
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:64:35
|
2024-02-25 11:12:32 -06:00
|
|
|
|
|
|
|
|
LL | let x: _ = unsafe { std::mem::transmute::<_, i32>([1u16, 2u16]) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
|
|
|
|
|
|
|
error: transmute used without annotations
|
2024-03-15 12:42:35 -05:00
|
|
|
--> tests/ui/missing_transmute_annotations.rs:67:30
|
2024-02-25 11:12:32 -06:00
|
|
|
|
|
|
|
|
LL | let x: _ = std::mem::transmute::<_, i32>([1u16, 2u16]);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2024-02-19 07:53:53 -06:00
|
|
|
|