Skip to content

Commit 1d1cf7f

Browse files
committed
Add changelog
1 parent eaf5deb commit 1d1cf7f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.changelog/unknown-debug.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
applies_to: ["client"]
3+
authors: ["landonxjames"]
4+
references: ["smithy-rs#4137"]
5+
breaking: false
6+
new_feature: false
7+
bug_fix: true
8+
---
9+
10+
Fix bug with enum codegen
11+
12+
When the first enum generated has the `@sensitive` trait the opaque type
13+
underlying the `UnknownVariant` inherits that sensitivity. This means that
14+
it does not derive `Debug`. Since the module is only generated once this
15+
causes a problem for non-sensitive enums that rely on the type deriving
16+
`Debug` so that they can also derive `Debug`. We manually add `Debug` to
17+
the module so it will always be there since the `UnknownVariant` is not
18+
modeled and cannot be `@sensitive`.

0 commit comments

Comments
 (0)