11error: transmute used without annotations
2- --> tests/ui/missing_transmute_annotations.rs:19 :15
2+ --> tests/ui/missing_transmute_annotations.rs:20 :15
33 |
44LL | std::mem::transmute([1u16, 2u16])
55 | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
@@ -8,37 +8,37 @@ LL | std::mem::transmute([1u16, 2u16])
88 = help: to override `-D warnings` add `#[allow(clippy::missing_transmute_annotations)]`
99
1010error: transmute used without annotations
11- --> tests/ui/missing_transmute_annotations.rs:24 :15
11+ --> tests/ui/missing_transmute_annotations.rs:25 :15
1212 |
1313LL | std::mem::transmute::<_, _>([1u16, 2u16])
1414 | ^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
1515
1616error: transmute used without annotations
17- --> tests/ui/missing_transmute_annotations.rs:29 :15
17+ --> tests/ui/missing_transmute_annotations.rs:30 :15
1818 |
1919LL | std::mem::transmute::<_, i32>([1u16, 2u16])
2020 | ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
2121
2222error: transmute used without annotations
23- --> tests/ui/missing_transmute_annotations.rs:34 :15
23+ --> tests/ui/missing_transmute_annotations.rs:35 :15
2424 |
2525LL | std::mem::transmute::<[u16; 2], _>([1u16, 2u16])
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
2727
2828error: transmute used without annotations
29- --> tests/ui/missing_transmute_annotations.rs:39 :32
29+ --> tests/ui/missing_transmute_annotations.rs:40 :32
3030 |
3131LL | let x: i32 = bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]));
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
3333
3434error: transmute used without annotations
35- --> tests/ui/missing_transmute_annotations.rs:41 :19
35+ --> tests/ui/missing_transmute_annotations.rs:42 :19
3636 |
3737LL | bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]))
3838 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
3939
4040error: transmute used without annotations
41- --> tests/ui/missing_transmute_annotations.rs:10 :19
41+ --> tests/ui/missing_transmute_annotations.rs:11 :19
4242 |
4343LL | std::mem::transmute($e)
4444 | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
@@ -49,16 +49,28 @@ LL | local_bad_transmute!([1u16, 2u16])
4949 = note: this error originates in the macro `local_bad_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
5050
5151error: transmute used without annotations
52- --> tests/ui/missing_transmute_annotations.rs:61 :15
52+ --> tests/ui/missing_transmute_annotations.rs:62 :15
5353 |
5454LL | std::mem::transmute(0i32)
5555 | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<i32, Foo>`
5656
5757error: transmute used without annotations
58- --> tests/ui/missing_transmute_annotations.rs:66 :15
58+ --> tests/ui/missing_transmute_annotations.rs:67 :15
5959 |
6060LL | std::mem::transmute(Foo::A)
6161 | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<Foo, i32>`
6262
63- error: aborting due to 9 previous errors
63+ error: transmute used without annotations
64+ --> tests/ui/missing_transmute_annotations.rs:72:35
65+ |
66+ LL | let x: _ = unsafe { std::mem::transmute::<_, i32>([1u16, 2u16]) };
67+ | ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
68+
69+ error: transmute used without annotations
70+ --> tests/ui/missing_transmute_annotations.rs:75:30
71+ |
72+ LL | let x: _ = std::mem::transmute::<_, i32>([1u16, 2u16]);
73+ | ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
74+
75+ error: aborting due to 11 previous errors
6476
0 commit comments