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
As far as I can see, there is no fixed size switch anywhere. Put differently, the following patch causes no problems (well, some compiler warnings, but that's it):
diff --git a/generator/src/generator/namespace.rs b/generator/src/generator/namespace.rs
index 0ae83a6..09dd7f7 100644
--- a/generator/src/generator/namespace.rs+++ b/generator/src/generator/namespace.rs@@ -2990,6 +2990,7 @@ impl<'ns, 'c> NamespaceGenerator<'ns, 'c> {
if generate_serialize {
if let Some(size) = switch.size() {
+ unreachable!();
self.emit_fixed_size_switch_serialize(
switch,
name,
I'm not quite sure what to do with this knowledge. Remove the dead code from the code generator?
The text was updated successfully, but these errors were encountered:
I think I had added that thinking of #369. For example, if ClientMessageData gets replaced by a switch, that switch needs to be handled as a fixed size type because it is inside a non-GE event.
As far as I can see, there is no fixed size switch anywhere. Put differently, the following patch causes no problems (well, some compiler warnings, but that's it):
I'm not quite sure what to do with this knowledge. Remove the dead code from the code generator?
The text was updated successfully, but these errors were encountered: