about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-07 14:49:54 +0000
committerbors <bors@rust-lang.org>2022-10-07 14:49:54 +0000
commit2c8e473ffea22fdf9ffbecb53c1c7288d38fe923 (patch)
treee7d0f396c669a4be1c8b6e5307877f641bc0dc18 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent65ae6666c813cc1417ceefa7a60dba0761f9e44c (diff)
parentd3c041a08696b722da3276846e0064dd03742940 (diff)
downloadrust-2c8e473ffea22fdf9ffbecb53c1c7288d38fe923.tar.gz
rust-2c8e473ffea22fdf9ffbecb53c1c7288d38fe923.zip
Auto merge of #9585 - rust-lang:extend-box-default, r=Alexendoo
extend `box-default` lint, add suggestion

This extends the recently added `box-default` lint to also cover `Box::new(vec![])`, `Box::new(String::from(""))` and `Box::new(Vec::from([]))`. Also the lint now suggests a suitable replacement. I did not find a simple way to check whether the type is fully determined by the outside, so I at least checked for some variations to remove the turbofish in those cases.

---

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions