diff options
| author | bors <bors@rust-lang.org> | 2022-10-07 14:49:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-07 14:49:54 +0000 |
| commit | 2c8e473ffea22fdf9ffbecb53c1c7288d38fe923 (patch) | |
| tree | e7d0f396c669a4be1c8b6e5307877f641bc0dc18 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | 65ae6666c813cc1417ceefa7a60dba0761f9e44c (diff) | |
| parent | d3c041a08696b722da3276846e0064dd03742940 (diff) | |
| download | rust-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
