diff options
| author | Nathan Stocks <nathan.stocks@gmail.com> | 2017-04-02 13:11:53 -0600 |
|---|---|---|
| committer | Nathan Stocks <nathan.stocks@gmail.com> | 2017-04-02 13:11:53 -0600 |
| commit | 1e5389853ca3a99a338f3a40cbb96150f711410c (patch) | |
| tree | 6739a52f99fead328223b589045fe528c6275f6c | |
| parent | 6b7258670f606e6951e3ad34c02a598d595dfa6e (diff) | |
| download | rust-1e5389853ca3a99a338f3a40cbb96150f711410c.tar.gz rust-1e5389853ca3a99a338f3a40cbb96150f711410c.zip | |
Fix breaking the 'clean' subcommand caused replacing a single-letter variable with the same value in two contexts where it was used differently. That's why you don't use "m" as a variable for hundreds of lines in an outer function, and re-use it in closures several times in the same function. Sheesh.
| -rw-r--r-- | src/bootstrap/flags.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index c374d27fe4f..2e133664a05 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -244,7 +244,7 @@ Arguments: Subcommand::Doc { paths: paths } } "clean" => { - if matches.free.len() > 0 { + if paths.len() > 0 { println!("\nclean takes no arguments\n"); usage(1, &opts, &subcommand_help, &extra_help); } |
