1
1
error: transmute used without annotations
2
- --> tests/ui/missing_transmute_annotations.rs:20:15
2
+ --> tests/ui/missing_transmute_annotations.rs:35:19
3
3
|
4
- LL | std::mem::transmute([1u16, 2u16])
5
- | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
4
+ LL | i = std::mem::transmute([1u16, 2u16]);
5
+ | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
6
6
|
7
7
= note: `-D clippy::missing-transmute-annotations` implied by `-D warnings`
8
8
= help: to override `-D warnings` add `#[allow(clippy::missing_transmute_annotations)]`
9
9
10
10
error: transmute used without annotations
11
- --> tests/ui/missing_transmute_annotations.rs:25:15
11
+ --> tests/ui/missing_transmute_annotations.rs:37:19
12
12
|
13
- LL | std::mem::transmute::<_, _>([1u16, 2u16])
14
- | ^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
13
+ LL | i = std::mem::transmute::<_, _>([1u16, 2u16]);
14
+ | ^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
15
15
16
16
error: transmute used without annotations
17
- --> tests/ui/missing_transmute_annotations.rs:30:15
17
+ --> tests/ui/missing_transmute_annotations.rs:39:19
18
18
|
19
- LL | std::mem::transmute::<_, i32>([1u16, 2u16])
20
- | ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
19
+ LL | i = std::mem::transmute::<_, i32>([1u16, 2u16]);
20
+ | ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
21
21
22
22
error: transmute used without annotations
23
- --> tests/ui/missing_transmute_annotations.rs:35:15
23
+ --> tests/ui/missing_transmute_annotations.rs:41:19
24
24
|
25
- LL | std::mem::transmute::<[u16; 2], _>([1u16, 2u16])
26
- | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
25
+ LL | i = std::mem::transmute::<[u16; 2], _>([1u16, 2u16]);
26
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
27
27
28
28
error: transmute used without annotations
29
- --> tests/ui/missing_transmute_annotations.rs:40 :32
29
+ --> tests/ui/missing_transmute_annotations.rs:44 :32
30
30
|
31
31
LL | let x: i32 = bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]));
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
33
33
34
34
error: transmute used without annotations
35
- --> tests/ui/missing_transmute_annotations.rs:42 :19
35
+ --> tests/ui/missing_transmute_annotations.rs:46 :19
36
36
|
37
- LL | bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]))
37
+ LL | bar(std::mem::transmute::<[u16; 2], _>([1u16, 2u16]));
38
38
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
39
39
40
40
error: transmute used without annotations
@@ -43,31 +43,31 @@ error: transmute used without annotations
43
43
LL | std::mem::transmute($e)
44
44
| ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
45
45
...
46
- LL | local_bad_transmute!([1u16, 2u16])
47
- | ---------------------------------- in this macro invocation
46
+ LL | i = local_bad_transmute!([1u16, 2u16]);
47
+ | ---------------------------------- in this macro invocation
48
48
|
49
49
= note: this error originates in the macro `local_bad_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
50
50
51
51
error: transmute used without annotations
52
- --> tests/ui/missing_transmute_annotations.rs:62:15
52
+ --> tests/ui/missing_transmute_annotations.rs:54:19
53
53
|
54
- LL | std::mem::transmute(0i32)
55
- | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<i32, Foo >`
54
+ LL | i = std::mem::transmute([0i16, 0i16]);
55
+ | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<[i16; 2], i32 >`
56
56
57
57
error: transmute used without annotations
58
- --> tests/ui/missing_transmute_annotations.rs:67:15
58
+ --> tests/ui/missing_transmute_annotations.rs:57:19
59
59
|
60
- LL | std::mem::transmute(Foo::A)
61
- | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<Foo, i32>`
60
+ LL | i = std::mem::transmute(Foo::A);
61
+ | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<Foo, i32>`
62
62
63
63
error: transmute used without annotations
64
- --> tests/ui/missing_transmute_annotations.rs:72 :35
64
+ --> tests/ui/missing_transmute_annotations.rs:64 :35
65
65
|
66
66
LL | let x: _ = unsafe { std::mem::transmute::<_, i32>([1u16, 2u16]) };
67
67
| ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
68
68
69
69
error: transmute used without annotations
70
- --> tests/ui/missing_transmute_annotations.rs:75 :30
70
+ --> tests/ui/missing_transmute_annotations.rs:67 :30
71
71
|
72
72
LL | let x: _ = std::mem::transmute::<_, i32>([1u16, 2u16]);
73
73
| ^^^^^^^^^^^^^^^^^^^ help: consider adding missing annotations: `transmute::<[u16; 2], i32>`
0 commit comments