Commit 5eb16ad
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.1 parent 69b2435 commit 5eb16ad
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 | |
|---|---|---|---|
| |||
6276 | 6276 | | |
6277 | 6277 | | |
6278 | 6278 | | |
6279 | | - | |
| 6279 | + | |
6280 | 6280 | | |
6281 | 6281 | | |
6282 | 6282 | | |
| |||
| 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