You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#122820 - oli-obk:no_ord_def_id, r=estebank
Stop using `<DefId as Ord>` in various diagnostic situations
work towards rust-lang#90317
Reverts part of rust-lang#106281, as it sorts constants and that's problematic since it can contain `ParamConst`, which contains `DefId`s
= note: target type: `[u32; W * H * H]` (generic size 4 * H * H * W)
25
+
= note: source type: `[[u32; H]; W]` (size can vary because of [u32; H])
26
+
= note: target type: `[u32; W * H * H]` (this type does not have a fixed size)
27
27
28
28
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29
29
--> $DIR/transmute-fail.rs:30:5
@@ -34,6 +34,87 @@ LL | std::mem::transmute(v)
34
34
= note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type `[[u32; 8888888]; 9999999]` are too big for the current architecture)
35
35
= note: target type: `[[[u32; 9999999]; 777777777]; 8888888]` (values of the type `[[u32; 9999999]; 777777777]` are too big for the current architecture)
36
36
37
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
38
+
--> $DIR/transmute-fail.rs:37:5
39
+
|
40
+
LL | std::mem::transmute(v)
41
+
| ^^^^^^^^^^^^^^^^^^^
42
+
|
43
+
= note: source type: `[[u32; H]; W]` (size can vary because of [u32; H])
44
+
= note: target type: `[[u32; W]; H]` (size can vary because of [u32; W])
45
+
46
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
47
+
--> $DIR/transmute-fail.rs:50:5
48
+
|
49
+
LL | std::mem::transmute(v)
50
+
| ^^^^^^^^^^^^^^^^^^^
51
+
|
52
+
= note: source type: `[[u32; H]; W]` (size can vary because of [u32; H])
53
+
= note: target type: `[u32; W * H]` (this type does not have a fixed size)
54
+
55
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
56
+
--> $DIR/transmute-fail.rs:57:5
57
+
|
58
+
LL | std::mem::transmute(v)
59
+
| ^^^^^^^^^^^^^^^^^^^
60
+
|
61
+
= note: source type: `[u32; H*W]` (this type does not have a fixed size)
62
+
= note: target type: `[[u32; W]; H]` (size can vary because of [u32; W])
63
+
64
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
65
+
--> $DIR/transmute-fail.rs:66:5
66
+
|
67
+
LL | std::mem::transmute(v)
68
+
| ^^^^^^^^^^^^^^^^^^^
69
+
|
70
+
= note: source type: `[[[u32; D]; H]; W]` (size can vary because of [u32; D])
71
+
= note: target type: `[u32; D * W * H]` (this type does not have a fixed size)
72
+
73
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
74
+
--> $DIR/transmute-fail.rs:75:5
75
+
|
76
+
LL | std::mem::transmute(v)
77
+
| ^^^^^^^^^^^^^^^^^^^
78
+
|
79
+
= note: source type: `[[[u32; D]; H]; W]` (size can vary because of [u32; D])
80
+
= note: target type: `[[u32; D * W]; H]` (size can vary because of [u32; D * W])
81
+
82
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
83
+
--> $DIR/transmute-fail.rs:82:5
84
+
|
85
+
LL | std::mem::transmute(v)
86
+
| ^^^^^^^^^^^^^^^^^^^
87
+
|
88
+
= note: source type: `[u16; L]` (this type does not have a fixed size)
89
+
= note: target type: `[u8; L * 2]` (this type does not have a fixed size)
90
+
91
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
92
+
--> $DIR/transmute-fail.rs:89:5
93
+
|
94
+
LL | std::mem::transmute(v)
95
+
| ^^^^^^^^^^^^^^^^^^^
96
+
|
97
+
= note: source type: `[u8; L * 2]` (this type does not have a fixed size)
98
+
= note: target type: `[u16; L]` (this type does not have a fixed size)
99
+
100
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
101
+
--> $DIR/transmute-fail.rs:96:5
102
+
|
103
+
LL | std::mem::transmute(v)
104
+
| ^^^^^^^^^^^^^^^^^^^
105
+
|
106
+
= note: source type: `[u8; L]` (this type does not have a fixed size)
107
+
= note: target type: `[[u8; 1]; L]` (this type does not have a fixed size)
108
+
109
+
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
110
+
--> $DIR/transmute-fail.rs:105:5
111
+
|
112
+
LL | std::mem::transmute(v)
113
+
| ^^^^^^^^^^^^^^^^^^^
114
+
|
115
+
= note: source type: `[[u32; 2 * H]; W + W]` (size can vary because of [u32; 2 * H])
116
+
= note: target type: `[[u32; W + W]; 2 * H]` (size can vary because of [u32; W + W])
0 commit comments