about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-01-13 15:12:01 +0000
committerGitHub <noreply@github.com>2025-01-13 15:12:01 +0000
commitdcbe3adc4bfeb0e41bbe24d75114f28d8efbb0d7 (patch)
treec91ca641b5338f39c0e6cd816a65c6bea3129ff6 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent0db64118ca92701e72c15c76d1157329cd2dd120 (diff)
parent39269aaaae12e3f50265b0a4cd17ecd90831b910 (diff)
downloadrust-dcbe3adc4bfeb0e41bbe24d75114f28d8efbb0d7.tar.gz
rust-dcbe3adc4bfeb0e41bbe24d75114f28d8efbb0d7.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions