bors
5a3e320514
auto merge of #6647 : alexcrichton/rust/unnecessary-alloc, r=graydon
...
This adds a lint mode for detecting unnecessary allocations on the heap. This isn't super fancy, currently it only has two rules
1. For a function's arguments, if you allocate a `[~|@]str` literal, when the type of the argument is a `&str`, emit a warning.
2. For the same case, emit warnings for boxed vectors when slices are required.
After adding the lint, I rampaged through the libraries and removed all the unnecessary allocations I could find.
2013-05-20 23:55:20 -07:00
..
2013-05-19 08:16:02 -04:00
2013-05-20 12:07:14 +02:00
2013-05-20 14:41:56 -07:00
2013-05-19 08:13:30 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 08:16:02 -04:00
2013-05-19 08:16:02 -04:00
2013-05-02 13:22:04 +10:00
2013-05-19 23:34:32 -07:00
2013-05-20 16:10:40 -05:00
2013-05-19 23:34:32 -07:00
2013-05-20 09:17:19 -07:00
2013-05-19 08:16:02 -04:00
2013-05-19 08:16:02 -04:00
2013-05-15 11:02:17 +10:00
2013-05-19 08:16:02 -04:00
2013-05-20 16:10:40 -05:00
2013-05-08 17:03:59 -07:00
2013-05-20 16:10:40 -05:00
2013-05-19 23:34:32 -07:00
2013-05-20 16:10:40 -05:00
2013-05-19 08:16:02 -04:00
2013-05-19 08:16:02 -04:00
2013-05-20 16:10:40 -05:00
2013-01-01 01:02:48 -05:00
2013-05-19 08:16:02 -04:00
2013-05-20 14:41:56 -07:00
2013-05-19 23:34:32 -07:00
2013-05-14 12:25:18 -04:00
2013-05-20 16:10:40 -05:00
2013-05-19 08:16:02 -04:00
2013-05-19 08:16:02 -04:00
2013-05-20 16:10:40 -05:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-10 18:38:54 +09:00
2013-05-19 23:34:32 -07:00
2013-05-19 08:16:02 -04:00
2013-05-08 17:03:59 -07:00
2013-05-08 17:03:58 -07:00
2013-05-20 16:10:40 -05:00
2013-05-20 16:10:40 -05:00
2013-05-20 16:10:40 -05:00
2013-05-19 08:13:30 -07:00
2013-05-19 23:34:32 -07:00
2013-03-29 16:39:08 -07:00
2013-05-18 04:57:21 -04:00
2013-05-19 08:13:30 -07:00
2013-05-15 12:19:15 -07:00
2013-03-18 16:59:11 -07:00
2013-05-19 23:34:32 -07:00