Matthias Krüger
140f2fa5ae
Rollup merge of #143661 - Muscraft:other-suggestion-message, r=estebank
...
chore: Improve how the other suggestions message gets rendered
Note: This change is part of my ongoing work to use `annotate-snippets` as `rustc`'s emitter
This change started as a way to remove some specialty code paths from `annotate-snippets`, by making the "and {} other candidates" message get rendered like a secondary message with no level, but turned into a fix for the message's Unicode output. Before this change, when using the Unicode output, the other suggestions message would get rendered outside of the main suggestion block, making it feel disconnected from what it was referring to. This change makes it so that the message is on the last line of the block, aligning its rendering with other secondary messages, and making it clear what the message is referring to.
Before:
```
error[E0433]: failed to resolve: use of undeclared type `IntoIter`
╭▸ $DIR/issue-82956.rs:28:24
│
LL │ let mut iter = IntoIter::new(self);
│ ━━━━━━━━ use of undeclared type `IntoIter`
╰╴
help: consider importing one of these structs
╭╴
LL + use std::array::IntoIter;
├╴
LL + use std::collections::binary_heap::IntoIter;
├╴
LL + use std::collections::btree_map::IntoIter;
├╴
LL + use std::collections::btree_set::IntoIter;
╰╴
and 9 other candidates
```
After:
```
error[E0433]: failed to resolve: use of undeclared type `IntoIter`
╭▸ $DIR/issue-82956.rs:28:24
│
LL │ let mut iter = IntoIter::new(self);
│ ━━━━━━━━ use of undeclared type `IntoIter`
╰╴
help: consider importing one of these structs
╭╴
LL + use std::array::IntoIter;
├╴
LL + use std::collections::binary_heap::IntoIter;
├╴
LL + use std::collections::btree_map::IntoIter;
├╴
LL + use std::collections::btree_set::IntoIter;
│
╰ and 9 other candidates
```
2025-07-11 07:35:20 +02:00
..
2024-11-27 07:18:25 -08:00
2025-01-22 00:00:31 -05:00
2025-07-07 22:09:37 +00:00
2024-03-17 14:41:37 +00:00
2025-05-08 21:17:33 +08:00
2025-06-07 00:49:29 -07:00
2024-09-27 14:29:34 -07:00
2024-02-16 20:02:50 +00:00
2024-10-28 16:57:08 +11:00
2025-04-17 19:45:28 +08:00
2025-04-08 20:49:50 +02:00
2025-03-11 12:05:02 +00:00
2024-12-18 19:27:44 +00:00
2025-04-13 21:48:53 +03:00
2025-04-20 19:24:23 +02:00
2025-06-18 00:36:51 +08:00
2025-04-07 21:42:12 +02:00
2025-04-16 11:10:10 +02:00
2025-04-08 23:06:31 +03:00
2024-02-16 20:02:50 +00:00
2025-04-17 19:45:28 +08:00
2024-03-14 09:54:42 +08:00
2024-11-27 07:18:25 -08:00
2025-07-10 09:25:56 +08:00
2025-06-03 11:45:58 +02:00
2024-02-20 17:21:01 +00:00
2024-02-20 17:21:01 +00:00
2025-02-10 20:21:39 +00:00
2024-05-21 20:16:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-03 11:08:55 +03:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-02-23 11:29:35 +08:00
2024-09-27 16:37:43 +08:00
2024-09-27 16:37:43 +08:00
2024-09-13 11:51:17 +02:00
2024-02-16 20:02:50 +00:00
2025-02-11 08:52:08 +00:00
2025-03-06 10:50:23 +00:00
2025-04-16 22:44:02 +03:00
2025-04-16 22:44:02 +03:00
2025-04-16 22:44:02 +03:00
2025-04-16 22:44:02 +03:00
2025-04-13 21:48:53 +03:00
2024-08-31 14:00:54 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-08-08 13:09:58 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-03 11:08:55 +03:00
2024-12-23 20:25:41 +00:00
2024-10-18 18:18:41 +02:00
2024-10-18 18:18:41 +02:00
2024-10-18 18:18:41 +02:00
2024-10-18 18:18:41 +02:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-05-24 19:31:57 +08:00
2024-08-22 13:32:01 +02:00
2024-08-22 13:32:01 +02:00
2024-08-22 13:32:01 +02:00
2024-02-16 20:02:50 +00:00
2024-05-29 17:40:34 +08:00
2024-05-29 16:53:28 +08:00
2024-05-29 16:53:28 +08:00
2024-05-29 16:53:28 +08:00
2024-02-16 20:02:50 +00:00
2024-05-29 16:53:28 +08:00
2024-06-25 17:22:22 +02:00
2024-02-16 20:02:50 +00:00
2025-04-17 19:45:28 +08:00
2025-06-12 07:57:12 +00:00
2025-06-12 07:57:12 +00:00
2024-06-25 22:32:46 +02:00
2024-06-25 22:32:46 +02:00
2024-09-06 20:51:06 +00:00
2024-02-16 20:02:50 +00:00
2024-12-09 17:31:16 +08:00
2024-12-09 17:31:16 +08:00
2024-02-16 20:02:50 +00:00
2024-12-15 23:46:42 +01:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2025-06-12 07:33:56 +02:00
2024-05-15 13:17:11 -05:00
2025-02-10 20:21:39 +00:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-11-27 21:48:23 +01:00
2024-02-16 20:02:50 +00:00
2024-11-27 15:27:41 +01:00
2024-02-16 20:02:50 +00:00
2024-11-27 15:27:41 +01:00
2024-10-18 18:18:41 +02:00
2024-10-18 18:18:41 +02:00
2024-10-18 18:18:41 +02:00
2024-05-29 16:53:37 +08:00
2024-05-29 16:53:37 +08:00
2024-05-29 16:53:37 +08:00
2024-02-16 20:02:50 +00:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2024-05-29 17:40:34 +08:00
2025-01-07 16:04:14 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-13 20:27:43 +00:00
2025-06-12 07:57:12 +00:00
2025-06-12 07:57:12 +00:00
2024-05-20 19:55:59 -07:00
2024-02-25 17:51:56 +05:30
2024-02-25 17:51:56 +05:30
2024-04-29 08:16:26 +05:30
2024-04-29 08:16:26 +05:30
2024-02-26 15:22:22 +05:30
2025-05-27 21:14:48 +02:00
2025-05-27 21:14:48 +02:00
2025-05-27 21:14:48 +02:00
2024-12-09 17:39:08 +08:00
2024-12-09 17:39:08 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-03 18:10:48 +00:00
2025-04-03 18:10:48 +00:00
2025-04-20 11:18:38 +02:00
2025-04-20 11:18:38 +02:00
2025-04-06 21:41:47 +02:00
2025-03-11 21:56:53 +01:00
2025-03-11 21:56:53 +01:00
2025-04-24 13:14:36 +07:00
2025-04-24 13:14:36 +07:00
2024-02-16 20:02:50 +00:00
2024-04-22 18:48:47 +02:00
2025-01-09 23:47:11 -08:00
2024-10-31 21:26:36 -05:00
2024-10-31 21:26:36 -05:00
2024-10-31 21:26:36 -05:00
2024-10-31 21:26:36 -05:00
2024-10-31 21:26:36 -05:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-08-19 21:39:57 +02:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-10-18 18:18:41 +02:00
2024-11-27 15:27:41 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-16 20:03:31 +00:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-02-02 01:00:33 +00:00
2025-02-02 01:00:33 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-17 10:44:46 +05:30
2024-02-17 10:44:46 +05:30
2024-02-17 10:44:46 +05:30
2024-02-17 10:44:46 +05:30
2025-04-18 15:57:29 +02:00
2025-01-20 16:46:00 -05:00
2025-01-20 16:46:00 -05:00
2025-03-21 13:59:29 +00:00
2025-07-05 18:37:11 +00:00
2025-04-17 19:45:28 +08:00
2025-04-08 23:06:31 +03:00
2024-08-16 14:10:06 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-01-06 03:17:04 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-02-16 20:02:50 +00:00
2024-12-09 17:31:16 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-12-09 17:31:16 +08:00
2024-12-09 17:31:16 +08:00
2025-05-29 12:55:26 +00:00
2025-05-29 12:55:26 +00:00
2025-05-29 12:55:26 +00:00
2025-05-29 12:55:26 +00:00
2024-09-23 12:55:56 -04:00
2025-05-29 12:55:26 +00:00
2025-05-29 12:55:26 +00:00
2024-10-06 22:36:51 -04:00
2024-10-06 22:36:51 -04:00
2025-06-03 13:35:31 +02:00
2025-06-03 13:35:31 +02:00
2025-01-26 12:18:33 +01:00
2025-01-26 12:18:33 +01:00
2024-06-21 19:00:18 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-20 13:39:39 +00:00
2025-02-20 13:39:39 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-12-23 20:25:41 +00:00
2024-12-23 20:25:41 +00:00
2024-02-16 20:02:50 +00:00
2024-09-09 14:51:39 +02:00
2024-09-09 14:51:39 +02:00
2024-10-23 18:05:27 +00:00
2024-09-11 12:14:35 +02:00
2025-06-03 13:35:31 +02:00
2024-08-16 14:10:06 -04:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2025-06-22 16:45:16 +02:00
2025-06-22 16:45:16 +02:00
2025-06-22 16:45:16 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-03 13:55:52 -08:00
2025-02-09 20:39:43 +08:00
2025-02-09 20:39:43 +08:00
2024-02-24 12:17:37 +01:00
2024-02-24 12:17:37 +01:00
2024-02-24 12:17:37 +01:00
2024-12-27 19:58:16 +11:00
2025-06-03 11:45:58 +02:00
2024-04-22 11:51:50 -04:00
2024-02-16 20:02:50 +00:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-11-03 13:55:52 -08:00
2024-11-03 13:55:52 -08:00
2024-02-16 20:02:50 +00:00
2024-02-07 14:59:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-03 13:55:52 -08:00
2024-11-03 13:55:52 -08:00
2024-11-03 13:55:52 -08:00
2024-10-21 15:22:17 +01:00
2025-02-10 20:21:39 +00:00
2024-10-21 15:22:17 +01:00
2025-02-14 00:44:10 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-01-26 12:18:33 +01:00
2025-01-26 12:18:33 +01:00
2024-02-16 20:02:50 +00:00
2024-07-07 17:11:05 +02:00
2024-07-07 17:11:05 +02:00
2025-03-25 17:33:09 +03:00
2024-08-31 14:00:54 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-13 21:48:53 +03:00
2024-08-31 14:00:54 +00:00
2025-04-13 21:48:53 +03:00
2024-08-31 14:00:54 +00:00
2025-06-03 13:35:31 +02:00
2025-06-03 13:35:31 +02:00
2025-07-01 08:56:20 +02:00
2025-07-01 08:56:20 +02:00
2025-07-01 08:56:20 +02:00
2025-04-08 23:06:31 +03:00
2024-12-12 23:36:27 +00:00
2024-09-14 16:12:00 +05:30
2024-05-22 12:46:08 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-06-30 12:45:47 +05:00
2025-06-30 12:45:47 +05:00
2024-07-31 19:36:47 +02:00
2024-07-31 19:36:47 +02:00
2024-02-22 18:01:20 +00:00
2024-02-22 18:01:20 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-02-16 20:02:50 +00:00
2024-11-27 15:27:41 +01:00
2025-05-31 19:49:19 +05:00
2024-02-16 20:02:50 +00:00
2024-06-27 08:55:28 +10:00
2024-06-27 08:55:28 +10:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2024-06-25 17:22:22 +02:00
2025-02-10 20:21:39 +00:00
2024-05-10 12:33:07 -04:00
2024-12-01 11:31:09 +13:00
2024-02-16 20:02:50 +00:00
2024-09-21 08:59:52 -07:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-26 14:48:30 +09:00
2025-04-26 14:48:30 +09:00
2025-04-26 14:48:30 +09:00
2024-03-01 13:48:20 +00:00
2024-02-16 20:02:50 +00:00
2024-06-23 22:00:52 +00:00
2024-02-20 20:55:13 -07:00
2024-02-20 20:55:13 -07:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-03-14 19:50:03 +00:00
2024-02-16 20:02:50 +00:00
2025-02-28 07:25:52 +05:30
2025-02-28 07:25:52 +05:30
2024-02-16 20:02:50 +00:00
2025-02-21 17:50:11 +00:00
2024-08-08 11:58:11 -04:00
2024-08-08 11:58:11 -04:00
2024-08-08 11:58:11 -04:00
2024-02-16 20:02:50 +00:00
2024-12-24 11:35:38 +08:00
2024-10-05 00:19:26 +00:00
2024-02-16 20:02:50 +00:00
2024-10-21 21:33:33 +08:00
2024-10-21 21:33:33 +08:00
2024-05-20 19:55:59 -07:00
2024-05-20 11:13:10 -04:00
2025-05-29 10:24:23 +00:00
2025-04-10 09:56:37 +02:00
2024-09-23 11:57:28 +02:00
2024-11-04 19:09:40 +01:00
2024-11-04 19:09:40 +01:00
2024-11-04 19:09:40 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-07 01:16:45 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2025-05-04 18:27:45 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-08 23:06:31 +03:00
2024-02-16 20:02:50 +00:00
2025-04-30 01:29:44 +08:00
2025-04-30 01:29:44 +08:00
2025-04-30 01:29:44 +08:00
2024-11-27 07:18:25 -08:00
2024-03-15 14:59:05 +00:00
2024-02-16 20:02:50 +00:00
2025-07-10 08:00:20 -06:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-03-29 22:02:07 +01:00
2025-05-25 17:08:58 +02:00