Jonathan Brouwer
a886ffca9d
Rollup merge of #159253 - asuto15:suggest-export-name, r=JonathanBrouwer
...
Add suggestions for using `#[export_name]` instead of `#[link_name]` on static
Fixes rust-lang/rust#159247 .
This adds a suggestion for using `#[unsafe(export_name = "...")]` when `#[link_name = "..."]` is applied to a static.
It also handles the existing `#[unsafe(link_name = "...")]` form by replacing only the attribute name.
Tested with:
- `./x test tests/ui/attributes/link-name-on-static.rs`
- `./x test tests/ui/attributes/unsafe-link-name-on-static.rs`
2026-07-27 11:58:09 +02:00
..
2026-06-30 09:01:03 +00:00
2026-07-24 12:58:31 +10:00
2026-07-26 18:18:15 +10:00
2026-03-09 09:11:06 +00:00
2026-07-24 12:58:31 +10:00
2026-07-24 13:01:21 +10:00
2026-07-24 13:01:21 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-02-10 19:39:19 +00:00
2026-02-10 19:39:19 +00:00
2026-05-30 11:38:38 +02:00
2026-07-24 13:01:21 +10:00
2026-05-31 17:25:43 +02:00
2026-07-26 22:25:19 +10:00
2026-07-21 16:11:09 +00:00
2026-04-26 10:07:00 +02:00
2026-04-26 10:07:00 +02:00
2026-04-26 10:07:00 +02:00
2026-05-27 14:43:25 -03:00
2026-06-28 18:39:17 +02:00
2026-07-24 12:58:31 +10:00
2026-04-17 12:37:58 +02:00
2026-04-17 12:37:58 +02:00
2026-04-17 12:37:58 +02:00
2026-04-17 12:37:58 +02:00
2026-05-30 11:33:50 +02:00
2026-07-26 18:18:15 +10:00
2026-07-24 12:58:31 +10:00
2026-07-05 19:07:05 +02:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-05-02 12:02:25 +01:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-07-25 18:13:03 +02:00
2026-07-25 18:13:03 +02:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-02-10 09:48:03 +00:00
2026-07-24 12:58:31 +10:00
2026-05-27 14:43:25 -03:00
2026-05-27 20:55:46 -03:00
2026-05-27 20:55:46 -03:00
2026-07-24 13:01:21 +10:00
2026-07-24 13:01:21 +10:00
2026-01-22 02:34:28 +00:00
2026-01-22 02:34:28 +00:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-01-22 02:30:56 +00:00
2026-07-24 13:01:21 +10:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-02-04 10:54:45 +01:00
2026-06-21 10:01:09 +02:00
2026-02-04 10:54:45 +01:00
2026-02-04 10:54:45 +01:00
2026-06-02 21:12:15 +02:00
2026-07-24 12:58:31 +10:00
2026-06-11 05:08:40 +02:00
2026-06-15 17:00:36 +02:00
2026-06-25 17:12:10 +08:00
2026-06-02 21:12:15 +02:00
2026-07-24 12:58:31 +10:00
2026-07-24 13:01:21 +10:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-07-24 12:58:31 +10:00
2026-05-02 12:02:25 +01:00
2025-12-31 03:01:05 +01:00
2026-07-24 13:01:21 +10:00
2026-06-16 17:11:03 -05:00
2026-07-24 13:01:21 +10:00
2026-07-26 22:25:19 +10:00
2026-07-26 22:25:19 +10:00
2026-07-26 20:30:29 +10:00
2026-06-23 13:22:47 +02:00
2026-06-23 13:22:47 +02:00
2026-03-17 10:07:52 +00:00
2026-07-24 13:01:21 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-04-19 14:41:59 +02:00
2026-04-19 14:41:59 +02:00
2025-12-31 03:01:05 +01:00
2025-12-31 03:01:05 +01:00
2026-04-26 19:36:39 +02:00
2026-04-26 19:36:39 +02:00
2025-12-13 15:13:04 +01:00
2026-07-26 18:18:15 +10:00
2026-06-02 21:12:15 +02:00
2026-07-24 12:58:31 +10:00
2026-05-30 11:33:50 +02:00
2026-07-24 13:01:21 +10:00
2026-07-24 12:58:31 +10:00
2025-12-10 20:18:42 +01:00
2025-12-10 20:18:42 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2025-12-10 12:28:05 +01:00
2026-07-26 22:25:19 +10:00
2026-07-26 22:25:19 +10:00
2026-07-26 22:02:34 +09:00
2026-07-26 22:02:34 +09:00
2026-07-25 19:25:58 +02:00
2026-07-25 19:25:58 +02:00
2026-07-26 22:25:19 +10:00
2026-07-26 22:25:19 +10:00
2026-07-24 12:58:29 +10:00
2026-07-26 22:25:19 +10:00
2026-06-02 21:12:15 +02:00
2026-07-24 13:01:21 +10:00
2025-12-13 15:14:01 +01:00
2026-07-26 18:18:15 +10:00
2026-02-10 10:17:24 +01:00
2026-07-24 12:58:29 +10:00
2026-04-18 10:20:32 +02:00
2026-07-24 13:01:21 +10:00
2026-06-02 21:12:15 +02:00
2026-07-24 13:01:21 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 13:01:21 +10:00
2026-04-12 11:18:10 +01:00
2026-07-24 13:01:21 +10:00
2026-06-25 14:27:39 +02:00
2026-07-24 12:58:31 +10:00
2026-04-26 10:07:00 +02:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-05-02 12:02:25 +01:00
2026-05-02 12:02:25 +01:00
2026-05-02 12:02:25 +01:00
2026-06-05 11:43:09 +02:00
2026-06-05 11:17:24 +02:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-07-24 12:58:31 +10:00
2026-03-04 08:29:44 +00:00
2026-06-04 21:52:07 +02:00
2026-06-04 21:52:07 +02:00
2026-06-02 21:12:15 +02:00
2026-07-24 13:01:21 +10:00
2026-04-19 23:51:38 +05:30
2026-03-28 16:18:11 +09:00
2026-04-14 14:24:26 +02:00
2026-04-14 14:24:26 +02:00
2026-07-24 13:01:21 +10:00
2026-07-24 13:01:21 +10:00
2026-04-26 10:07:00 +02:00
2026-04-12 11:18:10 +01:00
2026-07-24 12:58:29 +10:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-07-26 18:18:15 +10:00
2026-07-15 17:12:15 +00:00
2026-04-26 10:07:00 +02:00
2026-04-27 09:53:10 +02:00
2026-04-27 09:53:10 +02:00