generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Description
When using rust-client-codegen
, if you have a shape like:
structure Foo {
meta: Bar
}
The struct member meta: Option<Bar>
would conflict with the built in meta: ::aws_smithy_types::error::ErrorMetadata
, and so it is correctly substituted as meta_value: Option<Bar>
.
(reference:
Line 23 in a87ffdf
"meta" to "meta_value", |
however, the generated setter method on the builder does not get renamed, and so duplicate set_meta
methods are added to the impl
block.
(reference:
Line 138 in a87ffdf
fun MemberShape.setterName() = "set_${this.memberName.toSnakeCase()}" |
This leads to an invalid crate which will fail to compile with the following error:
error[E0592]: duplicate definitions with name `set_meta`
Metadata
Metadata
Assignees
Labels
No labels