librustc: Add a lint mode for unnecessary copy and remove a bunch of them.

This commit is contained in:
Patrick Walton 2013-06-27 17:41:35 -07:00
parent 8c082658be
commit b4e674f6e6
59 changed files with 256 additions and 235 deletions

View file

@ -327,7 +327,7 @@ pub fn find_and_install_dependencies(ctxt: &Ctx,
// :-(
debug!("In find_and_install_dependencies...");
let my_workspace = copy *workspace;
let my_ctxt = copy *ctxt;
let my_ctxt = *ctxt;
for c.each_view_item() |vi: &ast::view_item| {
debug!("A view item!");
match vi.node {