Commit 2498d2f
Fix TypePath derive counting as a usage for deprecated types. (bevyengine#24011)
# Objective
- Deprecating a type deriving `TypePath` would cause **the type itself**
to trigger a deprecation lint. You couldn't even set
`#[allow(deprecated)]`!
## Solution
- Add `#[allow(deprecated)]` to the generated code of `TypePath`.
## Testing
- The type I was deprecating stopped giving me lint warnings with this.1 parent ca4290a commit 2498d2f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments