about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2020-03-01 16:06:36 -0800
committerEric Huss <eric@huss.org>2020-03-02 08:42:35 -0800
commitfdc14cb0b0b47d1a1e1eadf7431b5fcd11568599 (patch)
tree1681ac0bf2683694df7f9e4ed28c424e775c155d
parent18c275b423f9f13c0e404ae3804967d2ab66337c (diff)
downloadrust-fdc14cb0b0b47d1a1e1eadf7431b5fcd11568599.tar.gz
rust-fdc14cb0b0b47d1a1e1eadf7431b5fcd11568599.zip
Toolstate: don't duplicate nightly tool list.
-rw-r--r--src/bootstrap/toolstate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/toolstate.rs b/src/bootstrap/toolstate.rs
index 5c39f5d5bc3..7cffc472930 100644
--- a/src/bootstrap/toolstate.rs
+++ b/src/bootstrap/toolstate.rs
@@ -443,7 +443,7 @@ fn change_toolstate(
         if new_state != state {
             eprintln!("The state of `{}` has changed from `{}` to `{}`", tool, state, new_state);
             if new_state < state {
-                if !["rustc-guide", "miri", "embedded-book"].contains(&tool.as_str()) {
+                if !NIGHTLY_TOOLS.iter().any(|(name, _path)| name == tool) {
                     regressed = true;
                 }
             }