aboutsummaryrefslogtreecommitdiff
path: root/ci/install-component.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/install-component.sh')
-rw-r--r--ci/install-component.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/install-component.sh b/ci/install-component.sh
index de08b8f..37ccdfa 100644
--- a/ci/install-component.sh
+++ b/ci/install-component.sh
@@ -4,7 +4,7 @@ set -euo pipefail
component="${1}"
-if ! rustup component add "${component}" 2>/dev/null; then
+if [[ "${component}" != "rustdoc" ]] && ! rustup component add "${component}" 2>/dev/null; then
# If the component is unavailable on the latest nightly,
# use the latest toolchain with the component available.
# Refs: https://github.com/rust-lang/rustup-components-history#the-web-part