Commit c3ee2fa
Add @retroactive to conformances that need it. (#714)
SE-0364 requires that retroactive conformance be marked with `@retroactive` to
suppress warnings about the dangers of conforming types you don't own to
protocols you don't own. The `RegexBuilder` module declares conformances to
`RegexComponent` (from the `Regex` module) on several types from the standard
library, like `String`. Since `RegexBuilder` declares neither the protocol nor
the conforming type, these conformances are technically retroactive even though
the modules involved are all developed and distributed together and can be
trusted to organize the conformances this way safely.
The compiler warnings about these conformances are quite spammy; they get
emitted every time someone builds the Swift compiler, so I'd like to suppress
them.
Co-authored-by: Allan Shortlidge <tshortli@gmail.com>1 parent b0cd8f1 commit c3ee2fa
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments