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 23:34:32 -07:00
2013-05-02 13:22:04 +10:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-19 23:34:32 -07:00
2013-05-15 12:19:15 -07:00
2013-05-19 23:34:32 -07:00