about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-04-12 12:46:47 +0000
committerbors <bors@rust-lang.org>2020-04-12 12:46:47 +0000
commit4d1fbaccb822b6d52dc786589de7918d3c5effb1 (patch)
tree0f82c206a1ce1d7df28a808e9e6c9e1824ad6f55
parent32fb4dcdd7a57683a639a0959442711d0fd123bc (diff)
parent0d9bf52cc85382eaf8d0a76731cc91648d8b033f (diff)
downloadrust-4d1fbaccb822b6d52dc786589de7918d3c5effb1.tar.gz
rust-4d1fbaccb822b6d52dc786589de7918d3c5effb1.zip
Auto merge of #70873 - mark-i-m:update-rdg, r=JohnTitor
Update rustc-dev-guide

This should finally fix toolstate

r? @JohnTitor
m---------src/doc/rustc-dev-guide0
-rw-r--r--src/tools/rustbook/src/main.rs4
2 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide b/src/doc/rustc-dev-guide
-Subproject 66be765404efb82c6bc2735473cbd3472f777dc
+Subproject 7adfab42bab045a848126895c2f1e09927c1331
diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs
index 01f324f0c5a..60bd0b72910 100644
--- a/src/tools/rustbook/src/main.rs
+++ b/src/tools/rustbook/src/main.rs
@@ -108,7 +108,9 @@ pub fn linkcheck(
                 is_real_error = true;
             }
             Reason::UnsuccessfulServerResponse(status) => {
-                if status.is_client_error() {
+                if status.as_u16() == 429 {
+                    eprintln!("Received 429 (TOO_MANY_REQUESTS) for link `{}`", link.link.uri);
+                } else if status.is_client_error() {
                     is_real_error = true;
                 } else {
                     eprintln!("Unsuccessful server response for link `{}`", link.link.uri);