Commit ac0a538
authored
Update nodiscard test (#8471)
This adds coverage of two uses missed in the original test. The first
covers structs with nodiscard on the type declaration, the second covers
selecting the method spelling of the attribute over the type attribute
if both are present.1 parent 8634ef1 commit ac0a538
2 files changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2876 | 2876 | | |
2877 | 2877 | | |
2878 | 2878 | | |
2879 | | - | |
2880 | | - | |
2881 | | - | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
2882 | 2882 | | |
| 2883 | + | |
2883 | 2884 | | |
2884 | 2885 | | |
2885 | 2886 | | |
| |||
2891 | 2892 | | |
2892 | 2893 | | |
2893 | 2894 | | |
2894 | | - | |
| 2895 | + | |
| 2896 | + | |
2895 | 2897 | | |
2896 | 2898 | | |
2897 | 2899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
11 | 23 | | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
18 | 36 | | |
0 commit comments