Commit 52abd6c
committed
AST/Sema: Adjust
Use `inheritsAvailabilityFromPlatform()` to determine whether to suppress
diagnostics about back deployed functions being unavailable. Previously, if the
platform of the `@backDeployed` attribute and the platform of the `@available`
attribute did not match exactly the diagnostic was always suppressed, which was
too permissive.@backDeployed attribute diagnostics for unavailable decls1 parent 35afd7f commit 52abd6c
2 files changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4547 | 4547 | | |
4548 | 4548 | | |
4549 | 4549 | | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
4550 | 4553 | | |
4551 | | - | |
4552 | | - | |
4553 | | - | |
4554 | | - | |
| 4554 | + | |
| 4555 | + | |
4555 | 4556 | | |
4556 | 4557 | | |
4557 | 4558 | | |
| |||
4563 | 4564 | | |
4564 | 4565 | | |
4565 | 4566 | | |
| 4567 | + | |
| 4568 | + | |
4566 | 4569 | | |
4567 | | - | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
4568 | 4574 | | |
4569 | | - | |
4570 | | - | |
| 4575 | + | |
4571 | 4576 | | |
4572 | | - | |
4573 | | - | |
| 4577 | + | |
4574 | 4578 | | |
4575 | 4579 | | |
4576 | 4580 | | |
| |||
0 commit comments