bors 976850b69b Auto merge of #6538 - Jarcho:vec_init_then_push, r=llogiq
New lint: vec_init_then_push

fixes: #1483

This will trigger on `new`, `default`, and `with_capacity` when the given capacity is less than or equal to the number of push calls. Is there anything else this should trigger on?

changelog: Added lint: `vec_init_then_push`
2021-01-04 20:42:18 +00:00
..
2020-08-17 13:55:05 +01:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2021-01-02 14:15:11 -05:00
2021-01-02 14:15:11 -05:00
2021-01-02 14:15:11 -05:00
2020-11-08 18:32:12 -05:00
2020-12-19 17:00:40 +01:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-09-10 15:23:38 +02:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-12-19 17:00:40 +01:00
2020-12-19 17:00:40 +01:00
2020-12-19 17:00:40 +01:00
2021-01-02 11:08:56 -05:00
2021-01-02 11:08:56 -05:00