Commit 056b006
authored
Use
# Objective
- Tests are manually checking whether derived types implement certain
traits. (Specifically in `bevy_reflect.)
- #11182 introduces
[`static_assertions`](https://docs.rs/static_assertions/) to
automatically check this.
- Simplifies `Reflect` test in #11195.
- Closes #11196.
## Solution
- Add `static_assertions` and replace current tests.
---
I wasn't sure whether to remove the existing test or not. What do you
think?static_assertions to check for trait impls (#11407)1 parent d151883 commit 056b006
2 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
| 1519 | + | |
1519 | 1520 | | |
1520 | 1521 | | |
1521 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1522 | 1526 | | |
1523 | 1527 | | |
1524 | 1528 | | |
| |||
1599 | 1603 | | |
1600 | 1604 | | |
1601 | 1605 | | |
| 1606 | + | |
| 1607 | + | |
1602 | 1608 | | |
1603 | 1609 | | |
1604 | 1610 | | |
| |||
1672 | 1678 | | |
1673 | 1679 | | |
1674 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
1675 | 1683 | | |
1676 | 1684 | | |
1677 | 1685 | | |
| |||
1702 | 1710 | | |
1703 | 1711 | | |
1704 | 1712 | | |
| 1713 | + | |
1705 | 1714 | | |
1706 | 1715 | | |
1707 | 1716 | | |
| |||
1724 | 1733 | | |
1725 | 1734 | | |
1726 | 1735 | | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | 1736 | | |
0 commit comments