Becca Royal-Gordon
cbad1d8a18
Tweak export_as behavior with submodules
...
In #86859 , I modified the way `export_as` names are used in private module interfaces so that the `export_as` name is used when that module has been imported. This turns out to be slightly too aggressive in a specific scenario where a submodule of the export_as module imports a submodule of the real module—the compiler ends up using the export name even though the resulting lookup won’t actually work.
Modify the logic for deciding whether to use an exported module name so that it not only checks whether the export_as module has been loaded, but also whether the specific module or submodule the declaration belongs to is (possibly transitively) imported by that module.
Fixes rdar://167874630 (harder).
2026-02-10 15:49:47 -08:00
..
2025-12-09 14:59:41 -08:00
2025-10-15 23:30:37 -07:00
2025-09-26 08:01:08 +02:00
2024-09-11 09:36:45 -07:00
2024-11-02 11:46:46 -07:00
2025-01-10 18:43:12 -08:00
2024-08-02 07:50:51 -07:00
2025-01-13 13:41:09 -08:00
2024-09-04 20:28:55 -07:00
2024-07-09 14:28:28 -07:00
2024-07-09 14:28:30 -07:00
2024-07-09 14:28:28 -07:00
2025-11-07 10:46:33 -08:00
2025-05-05 13:50:51 -07:00
2025-07-31 10:21:55 -07:00
2025-09-04 12:32:19 -07:00
2025-09-04 09:12:27 -07:00
2025-06-10 22:11:05 -07:00
2025-03-07 12:02:42 -08:00
2025-10-12 16:01:30 -07:00
2025-07-14 16:40:16 -07:00
2025-01-03 09:15:12 -08:00
2025-01-03 09:15:12 -08:00
2025-07-31 10:21:55 -07:00
2024-07-23 11:05:33 -07:00
2025-10-04 14:19:52 -07:00
2025-06-16 12:46:32 -07:00
2026-01-05 09:47:19 -08:00
2025-05-21 10:03:09 -07:00
2025-04-30 10:15:20 -07:00
2024-11-07 16:28:26 -05:00
2024-07-09 14:28:29 -07:00
2025-06-10 22:11:05 -07:00
2024-11-21 18:49:52 +01:00
2024-09-22 21:15:45 +01:00
2026-01-03 15:07:10 -08:00
2024-09-03 22:14:24 -07:00
2024-10-28 10:07:27 -07:00
2025-10-17 16:14:58 -07:00
2025-09-23 15:56:05 +09:00
2025-09-19 15:44:11 +09:00
2024-10-19 12:35:20 -07:00
2024-09-22 21:15:45 +01:00
2024-11-18 18:09:19 -08:00
2025-06-05 12:52:01 -04:00
2025-04-15 16:29:13 -07:00
2025-02-26 16:56:27 -05:00
2026-02-10 15:49:47 -08:00
2026-01-28 14:28:14 -08:00
2025-04-30 10:15:20 -07:00
2024-11-02 11:46:46 -07:00
2024-07-09 14:28:28 -07:00
2024-10-19 12:35:20 -07:00
2025-03-31 20:41:24 -07:00
2024-08-30 16:43:41 -07:00
2025-02-24 16:22:20 -08:00
2025-10-04 14:19:52 -07:00
2025-09-18 11:31:36 -07:00
2024-09-05 10:40:14 -07:00
2025-02-19 12:42:48 -05:00
2025-07-31 10:21:55 -07:00
2025-05-29 15:09:36 +01:00
2025-05-29 15:09:36 +01:00
2025-09-24 10:02:32 -04:00
2025-07-31 10:21:55 -07:00
2025-04-13 15:41:53 -07:00
2025-07-31 10:21:55 -07:00
2025-09-25 08:02:18 -07:00
2025-07-10 11:25:28 -07:00
2024-07-23 10:32:50 -07:00
2025-10-04 14:19:52 -07:00
2025-07-31 10:21:55 -07:00
2025-12-09 14:59:41 -08:00
2024-11-05 14:37:56 -08:00
2024-07-09 14:28:28 -07:00
2026-01-28 15:47:52 -08:00
2024-08-02 14:48:29 -07:00
2024-07-23 08:11:37 -07:00
2025-01-23 14:11:16 -08:00
2024-11-18 13:29:30 -08:00
2024-10-31 12:46:05 -07:00
2025-07-31 10:21:55 -07:00
2025-07-31 10:21:55 -07:00
2025-08-20 00:39:51 -07:00
2025-08-20 00:39:51 -07:00
2025-08-22 13:21:35 -07:00
2025-06-05 23:07:04 -04:00
2025-10-04 14:19:52 -07:00
2024-11-13 22:36:15 -08:00
2024-10-19 19:39:18 -07:00
2025-07-14 16:04:04 -07:00
2024-10-20 15:37:15 -07:00
2024-11-06 11:16:18 -08:00
2024-11-05 14:13:39 -08:00
2024-10-19 19:39:18 -07:00
2026-01-13 15:52:44 -08:00
2024-07-09 14:28:28 -07:00
2024-11-02 11:46:46 -07:00
2025-09-15 17:33:13 -07:00
2026-01-28 15:48:21 -08:00
2025-03-19 14:15:34 -07:00
2025-05-04 03:28:56 +01:00
2024-07-03 09:10:48 -07:00
2025-11-28 22:00:14 -08:00
2025-11-28 22:00:14 -08:00
2024-11-20 11:36:13 -08:00
2024-11-20 11:36:13 -08:00
2024-12-04 08:14:59 -08:00
2024-10-10 14:36:39 -07:00
2024-09-27 14:28:06 -07:00
2025-04-01 07:12:50 -07:00
2024-07-09 14:28:29 -07:00
2024-11-06 17:20:31 -08:00
2024-10-31 12:46:05 -07:00
2024-11-04 15:49:47 -08:00
2024-11-02 11:46:46 -07:00
2024-11-02 11:46:46 -07:00
2025-01-14 23:07:24 -08:00
2024-11-02 11:46:46 -07:00
2024-11-27 14:25:17 -08:00
2025-05-29 15:09:36 +01:00
2024-07-18 12:43:34 -07:00
2025-11-19 16:46:29 -08:00
2024-07-09 14:28:29 -07:00
2025-05-31 10:49:50 -07:00
2025-07-31 10:21:55 -07:00
2025-10-16 22:16:29 -07:00
2025-09-12 15:43:30 -04:00