Files
rust/tests/ui
Alejandra González dcbe3adc4b auto-fix slow_vector_initialization in some cases (#13947)
changelog: [`slow_vector_initialization`]: auto-fix when appropriate

I made a change for `slow_vector_initialization` lint suggestion to use
`vec!` with size and remove the unneeded `resize` (or similar one) call
in #13912, while only the former one was suggested in the previous
implementation. Now, I think this lint can be automatically fixed with
no unnecessary code in some cases. I wrote “in some cases” because if
there are comments between vector declaration and `resize`, Clippy
shouldn't apply auto-fix because the comment may informational.
2025-01-13 15:12:01 +00:00
..
2024-12-13 00:04:56 +00:00
2024-12-13 00:04:56 +00:00
2024-10-08 10:58:49 -04:00
2024-10-08 10:58:49 -04:00
2024-12-15 20:36:47 +01:00
2024-05-08 21:37:55 +02:00
2024-05-08 21:37:55 +02:00
2024-05-08 21:37:55 +02:00
2024-11-22 14:57:20 +01:00
2024-04-27 10:54:35 +03:00
2024-07-04 22:31:53 +02:00
2024-07-04 21:27:52 +02:00
2024-07-04 22:31:53 +02:00
2024-10-05 00:19:43 +00:00
2024-10-05 00:19:43 +00:00
2024-10-05 00:19:43 +00:00
2024-12-24 21:10:43 +09:00
2024-12-24 21:10:43 +09:00
2024-12-24 21:10:43 +09:00
2024-12-13 00:04:56 +00:00
2025-01-10 18:26:01 +01:00
2025-01-10 18:26:01 +01:00
2025-01-10 18:26:01 +01:00
2024-04-27 10:54:35 +03:00
2025-01-06 17:35:55 +01:00
2024-12-12 23:36:27 +00:00
2024-12-12 23:36:27 +00:00
2024-04-24 13:12:33 +01:00
2024-06-13 12:24:31 +02:00
2024-06-13 12:24:31 +02:00
2024-04-24 13:12:33 +01:00
2024-12-12 23:36:27 +00:00
2024-12-13 00:04:56 +00:00
2024-12-08 22:45:01 +01:00
2024-09-01 12:38:59 +02:00
2024-06-09 07:47:42 +01:00