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
impl<constNUM_COLS:usize,constNUM_ROWS:usize>TestC<NUM_COLS,NUM_ROWS>{#[doc = "\n Create a builder for building `TestC`.\n On the builder, call `.data(...)` to set the values of the fields.\n Finally, call `.build()` to create the instance of `TestC`.\n "]#[allow(dead_code, clippy::default_trait_access)]fnbuilder() -> TestCBuilder<NUM_COLS,NUM_ROWS,((),)>{TestCBuilder{fields:((),),phantom:::core::default::Default::default(),}}}#[must_use]#[doc(hidden)]#[allow(dead_code, non_camel_case_types, non_snake_case)]structTestCBuilder<constNUM_COLS:usize,constNUM_ROWS:usize,TypedBuilderFields = ((),)>{fields:TypedBuilderFields,phantom:::core::marker::PhantomData<(,)>,// ERROR HERE}impl<constNUM_COLS:usize,constNUM_ROWS:usize,TypedBuilderFields>CloneforTestCBuilder<NUM_COLS,NUM_ROWS,TypedBuilderFields>whereTypedBuilderFields:Clone,{#[allow(clippy::default_trait_access)]fnclone(&self) -> Self{Self{fields:self.fields.clone(),phantom:::core::marker::PhantomData,}}}#[allow(dead_code, non_camel_case_types, missing_docs)]impl<constNUM_COLS:usize,constNUM_ROWS:usize>TestCBuilder<NUM_COLS,NUM_ROWS,((),)>{pubfndata(self,data:[[u32;NUM_ROWS];NUM_COLS],) -> TestCBuilder<NUM_COLS,NUM_ROWS,(([[u32;NUM_ROWS];NUM_COLS],),)>{let data = (data,);let(_,) = self.fields;TestCBuilder{fields:(data,),phantom:self.phantom,}}}#[doc(hidden)]#[allow(dead_code, non_camel_case_types, non_snake_case)]pubenumTestCBuilder_Error_Repeated_field_data{}#[doc(hidden)]#[allow(dead_code, non_camel_case_types, missing_docs)]impl<constNUM_COLS:usize,constNUM_ROWS:usize>TestCBuilder<NUM_COLS,NUM_ROWS,(([[u32;NUM_ROWS];NUM_COLS],),)>{#[deprecated(note = "Repeated field data")]pubfndata(self,
_:TestCBuilder_Error_Repeated_field_data,) -> TestCBuilder<NUM_COLS,NUM_ROWS,(([[u32;NUM_ROWS];NUM_COLS],),)>{self}}#[doc(hidden)]#[allow(dead_code, non_camel_case_types, non_snake_case)]pubenumTestCBuilder_Error_Missing_required_field_data{}#[doc(hidden)]#[allow(dead_code, non_camel_case_types, missing_docs, clippy::panic)]impl<constNUM_COLS:usize,constNUM_ROWS:usize>TestCBuilder<NUM_COLS,NUM_ROWS,((),)>{#[deprecated(note = "Missing required field data")]pubfnbuild(self, _:TestCBuilder_Error_Missing_required_field_data) -> ! {panic!()}}#[allow(dead_code, non_camel_case_types, missing_docs)]impl<constNUM_COLS:usize,constNUM_ROWS:usize>TestCBuilder<NUM_COLS,NUM_ROWS,(([[u32;NUM_ROWS];NUM_COLS],),)>{#[allow(clippy::default_trait_access)]pubfnbuild(self) -> TestC<NUM_COLS,NUM_ROWS>{let(data,) = self.fields;let data = data.0;#[allow(deprecated)]TestC{ data }.into()}}
We can see in the "ERROR HERE" comment, it generates an extra "," in the phantom which breaks everything
The text was updated successfully, but these errors were encountered:
deriving on struct TestC yields this:
We can see in the "ERROR HERE" comment, it generates an extra "," in the phantom which breaks everything
The text was updated successfully, but these errors were encountered: