Files
Jonathan Brouwer fa16f8102e Rollup merge of #155693 - cclfmht:fix/issue-155508, r=ShoyuVanilla
Suggest enclosing format string with `""` under special cases

This commit adds suggestions on enclosing format string with `""` when it falls into the following 3 cases: `{}`, `{:?}`, `{:#?}` as mentioned in rust-lang/rust#155508.

Currently, this commit only recognizes the above 3 cases. I wonder if we should generalize this to more cases, for example, appying this suggestion to `Block`s with only 0 or 1 `Stmt`, such as `{:#x}`, `{:^10}`, `{abc}`.
2026-04-26 19:06:27 +02:00
..
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2026-03-20 18:48:38 -04:00
2026-03-20 18:48:38 -04:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-10-28 14:20:28 +11:00
2024-10-28 14:20:28 +11:00
2025-02-21 15:49:44 +11:00
2025-11-27 14:13:58 -05:00
2026-02-22 19:59:25 +01:00
2026-02-22 19:59:25 +01:00
2025-12-06 10:22:13 +01:00
2023-01-11 09:32:08 +00:00
2026-03-16 10:21:35 +00:00
2024-02-29 19:06:31 +08:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2025-08-09 16:27:20 +05:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-20 15:06:17 -03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-12-10 23:41:19 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-09 15:43:08 -03:00
2024-02-09 15:43:08 -03:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-08-14 18:18:42 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-12-03 16:38:24 +01:00
2025-12-03 16:38:24 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-02-21 15:49:46 +11:00
2025-02-21 15:49:46 +11:00
2023-01-11 09:32:08 +00:00
2024-10-28 14:20:28 +11:00
2024-10-28 14:20:28 +11:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-03-07 14:51:07 +11:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2024-10-28 14:20:28 +11:00
2024-10-28 14:20:28 +11:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-03-11 09:46:34 -07:00
2026-04-19 16:38:04 +09:00
2025-12-03 17:01:49 +01:00
2025-02-28 08:36:12 +11:00
2026-03-16 10:21:35 +00:00