Commit 42277cf
committed
[Conformance] Always downgrade redundant conformances to marker protocols to
a warning.
Previous compiler versions allowed this, so we should stage the change in as
a warning. This was already a warning across modules, so this change only impacts
redundant conformances to marker protocols within a module. This code also isn't
particularly harmful, because marker protocols don't have requirements, so there
isn't the same risk of unexpected behavior as other redundant conformances.
(cherry picked from commit 5eb16ad)1 parent cab91dc commit 42277cf
File tree
2 files changed
+8
-1
lines changed- lib/Sema
- test/decl/protocol/conforms
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6283 | 6283 | | |
6284 | 6284 | | |
6285 | 6285 | | |
6286 | | - | |
| 6286 | + | |
6287 | 6287 | | |
6288 | 6288 | | |
6289 | 6289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
0 commit comments