Commit 419c477
committed
Don't diagnose uses of
The `@unchecked` conformance is effectively the same as
`@safe(unchecked)`, in that it asserts memory safety in a place where
it cannot be automatically checked. But once that has been asserted,
there is no reason to diagnose anywhere else.
While here, drop the "unsafe declaration here" note, which isn't
adding value but did add noise.
Thanks, Alex!@unchecked Sendable conformances1 parent 3ab5456 commit 419c477
File tree
6 files changed
+11
-45
lines changed- include/swift/AST
- lib/Sema
- test/Unsafe
6 files changed
+11
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8090 | 8090 | | |
8091 | 8091 | | |
8092 | 8092 | | |
8093 | | - | |
8094 | | - | |
8095 | | - | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
8096 | 8096 | | |
8097 | 8097 | | |
8098 | 8098 | | |
| |||
8106 | 8106 | | |
8107 | 8107 | | |
8108 | 8108 | | |
8109 | | - | |
8110 | | - | |
8111 | | - | |
| 8109 | + | |
| 8110 | + | |
| 8111 | + | |
8112 | 8112 | | |
8113 | 8113 | | |
8114 | 8114 | | |
| |||
8124 | 8124 | | |
8125 | 8125 | | |
8126 | 8126 | | |
8127 | | - | |
8128 | | - | |
8129 | 8127 | | |
8130 | 8128 | | |
8131 | 8129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4772 | 4772 | | |
4773 | 4773 | | |
4774 | 4774 | | |
4775 | | - | |
4776 | | - | |
4777 | | - | |
4778 | | - | |
4779 | | - | |
4780 | | - | |
4781 | | - | |
4782 | | - | |
4783 | | - | |
4784 | | - | |
4785 | | - | |
4786 | | - | |
4787 | 4775 | | |
4788 | 4776 | | |
4789 | 4777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6699 | 6699 | | |
6700 | 6700 | | |
6701 | 6701 | | |
6702 | | - | |
6703 | | - | |
6704 | | - | |
6705 | | - | |
6706 | | - | |
6707 | | - | |
6708 | 6702 | | |
6709 | 6703 | | |
6710 | 6704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 153 | | |
165 | 154 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 155 | + | |
| 156 | + | |
169 | 157 | | |
170 | 158 | | |
171 | 159 | | |
| |||
231 | 219 | | |
232 | 220 | | |
233 | 221 | | |
234 | | - | |
235 | 222 | | |
236 | 223 | | |
237 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
0 commit comments