Repository navigation
Tags: wca/cargo
Tags
Auto merge of rust-lang#1641 - alexcrichton:update-less, r=brson Updating a path source can be a possibly expensive operation (lots of directories that need to be traversed), and currently the root path source is updated three times: * Once when the root package is initially loaded. * Again when the first resolution pass happens over a graph. * Finally a third when the second resolution pass happens over the graph. This commit pushes through the original `Source` trait object into the `PackageRegistry` and removes the implicit call to `add_sources`, pushing that call up to the stack a bit.
auto merge of rust-lang#988 : Gekkio/cargo/zsh-run-normal-args, r=ale… …xcrichton Running a Rust program with some arguments such as files is a common use case. The ZSH completion did not declare support for extra arguments to "cargo run", so file completion was impossible. In practice pressing TAB after writing "cargo run -- " gave no completion at all. After this patch, cargo run can do "normal completion", which in practice does file/directory completion. This works nicely with "cargo run -- ".