Commit aaf1005
committed
Auto merge of #97652 - RalfJung:cenum_impl_drop_cast, r=nagisa
make cenum_impl_drop_cast deny-by-default
Also make it show up as future breakage diagnostic.
In #96862 we are proposing to change behavior of those drops *again*, so this looks like a good opportunity to increase our pressure on getting them out of the ecosystem. Looking at the [tracking issue](#73333), so far nobody spoke up in favor of this (accidental) feature.
Cc #73333 `@oli-obk`File tree
3 files changed
+19
-4
lines changed- compiler/rustc_lint_defs/src
- src/test
- run-pass-valgrind
- ui
3 files changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | | - | |
1158 | 1157 | | |
1159 | 1158 | | |
1160 | 1159 | | |
| |||
2614 | 2613 | | |
2615 | 2614 | | |
2616 | 2615 | | |
2617 | | - | |
| 2616 | + | |
2618 | 2617 | | |
2619 | 2618 | | |
2620 | 2619 | | |
| |||
2650 | 2649 | | |
2651 | 2650 | | |
2652 | 2651 | | |
2653 | | - | |
| 2652 | + | |
2654 | 2653 | | |
2655 | 2654 | | |
2656 | 2655 | | |
| 2656 | + | |
2657 | 2657 | | |
2658 | 2658 | | |
2659 | 2659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments