Commit cd32aae
committed
Sema: exempt some imports from the warning on ioi use from non-resilient module
The correct use @_implementationOnly from a non-resilient module is not
enforced by the compiler at this time. Using that configuration can
cause memory corruption at runtime if it affects the memory layout of
types, and it can lead to compiler crashes at compilation in general.
Some modules rely on this configuration with a very limited use for it.
We can grandfather them in its use and silence the warning on specific
import edges.1 parent 2752414 commit cd32aae
File tree
2 files changed
+28
-4
lines changed- lib/Sema
- test/Sema
2 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
782 | 785 | | |
783 | 786 | | |
784 | 787 | | |
785 | 788 | | |
786 | 789 | | |
| 790 | + | |
| 791 | + | |
787 | 792 | | |
788 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
789 | 802 | | |
790 | 803 | | |
791 | | - | |
| 804 | + | |
792 | 805 | | |
793 | 806 | | |
794 | 807 | | |
| |||
801 | 814 | | |
802 | 815 | | |
803 | 816 | | |
804 | | - | |
805 | | - | |
| 817 | + | |
806 | 818 | | |
807 | 819 | | |
808 | 820 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments