_x() { local i cur prev opts cmd COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" cmd="" opts="" for i in ${COMP_WORDS[@]} do case "${cmd},${i}" in ",$1") cmd="x" ;; x,bench) cmd="x__bench" ;; x,build) cmd="x__build" ;; x,check) cmd="x__check" ;; x,clean) cmd="x__clean" ;; x,clippy) cmd="x__clippy" ;; x,dist) cmd="x__dist" ;; x,doc) cmd="x__doc" ;; x,fix) cmd="x__fix" ;; x,fmt) cmd="x__fmt" ;; x,install) cmd="x__install" ;; x,miri) cmd="x__miri" ;; x,perf) cmd="x__perf" ;; x,run) cmd="x__run" ;; x,setup) cmd="x__setup" ;; x,test) cmd="x__test" ;; x,vendor) cmd="x__vendor" ;; x__perf,benchmark) cmd="x__perf__benchmark" ;; x__perf,cachegrind) cmd="x__perf__cachegrind" ;; x__perf,compare) cmd="x__perf__compare" ;; x__perf,eprintln) cmd="x__perf__eprintln" ;; x__perf,samply) cmd="x__perf__samply" ;; *) ;; esac done case "${cmd}" in x) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]... build check clippy fix fmt doc test miri bench clean dist install run setup vendor perf" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__bench) opts="-v -i -j -h --test-args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --test-args) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__build) opts="-v -i -j -h --timings --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__check) opts="-v -i -j -h --all-targets --timings --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__clean) opts="-v -i -j -h --all --stage --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --stage) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__clippy) opts="-A -D -W -F -v -i -j -h --fix --allow-dirty --allow-staged --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in -A) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; -D) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; -W) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; -F) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__dist) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__doc) opts="-v -i -j -h --open --json --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__fix) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__fmt) opts="-v -i -j -h --check --all --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__install) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__miri) opts="-v -i -j -h --no-fail-fast --test-args --no-doc --doc --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --test-args) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]... eprintln samply cachegrind benchmark compare" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf__benchmark) opts="-v -i -j -h --include --exclude --scenarios --profiles --verbose --incremental --config --build-dir --build --host --target --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --include) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --scenarios) COMPREPLY=($(compgen -W "Full IncrFull IncrUnchanged IncrPatched" -- "${cur}")) return 0 ;; --profiles) COMPREPLY=($(compgen -W "Check Debug Doc Opt Clippy" -- "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf__cachegrind) opts="-v -i -j -h --include --exclude --scenarios --profiles --verbose --incremental --config --build-dir --build --host --target --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --include) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --scenarios) COMPREPLY=($(compgen -W "Full IncrFull IncrUnchanged IncrPatched" -- "${cur}")) return 0 ;; --profiles) COMPREPLY=($(compgen -W "Check Debug Doc Opt Clippy" -- "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf__compare) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf__eprintln) opts="-v -i -j -h --include --exclude --scenarios --profiles --verbose --incremental --config --build-dir --build --host --target --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --include) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --scenarios) COMPREPLY=($(compgen -W "Full IncrFull IncrUnchanged IncrPatched" -- "${cur}")) return 0 ;; --profiles) COMPREPLY=($(compgen -W "Check Debug Doc Opt Clippy" -- "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__perf__samply) opts="-v -i -j -h --include --exclude --scenarios --profiles --verbose --incremental --config --build-dir --build --host --target --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --include) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --scenarios) COMPREPLY=($(compgen -W "Full IncrFull IncrUnchanged IncrPatched" -- "${cur}")) return 0 ;; --profiles) COMPREPLY=($(compgen -W "Check Debug Doc Opt Clippy" -- "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__run) opts="-v -i -j -h --args --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --args) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__setup) opts="-v -i -j -h --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [|hook|editor|link] [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__test) opts="-v -i -j -h --no-fail-fast --test-args --compiletest-rustc-args --no-doc --doc --bless --extra-checks --force-rerun --only-modified --compare-mode --pass --run --rustfix-coverage --no-capture --test-codegen-backend --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --test-args) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --compiletest-rustc-args) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --extra-checks) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --compare-mode) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --pass) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --run) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --test-codegen-backend) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; x__vendor) opts="-v -i -j -h --sync --versioned-dirs --verbose --incremental --config --build-dir --build --host --target --exclude --skip --include-default-paths --rustc-error-format --on-fail --dry-run --dump-bootstrap-shims --stage --keep-stage --keep-stage-std --src --jobs --warnings --json-output --compile-time-deps --color --bypass-bootstrap-lock --rust-profile-generate --rust-profile-use --llvm-profile-use --llvm-profile-generate --enable-bolt-settings --skip-stage0-validation --reproducible-artifact --set --ci --skip-std-check-if-no-download-rustc --help [PATHS]... [ARGS]..." if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 fi case "${prev}" in --sync) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --config) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --build-dir) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --build) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --host) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --target) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --exclude) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --skip) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --rustc-error-format) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --on-fail) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --keep-stage-std) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --src) COMPREPLY=() if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o plusdirs fi return 0 ;; --jobs) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; -j) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --warnings) COMPREPLY=($(compgen -W "deny warn default" -- "${cur}")) return 0 ;; --color) COMPREPLY=($(compgen -W "always never auto" -- "${cur}")) return 0 ;; --rust-profile-generate) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --rust-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --llvm-profile-use) local oldifs if [ -n "${IFS+x}" ]; then oldifs="$IFS" fi IFS=$'\n' COMPREPLY=($(compgen -f "${cur}")) if [ -n "${oldifs+x}" ]; then IFS="$oldifs" fi if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o filenames fi return 0 ;; --reproducible-artifact) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; --set) COMPREPLY=("${cur}") if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then compopt -o nospace fi return 0 ;; --ci) COMPREPLY=($(compgen -W "true false" -- "${cur}")) return 0 ;; *) COMPREPLY=() ;; esac COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; esac } if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then complete -F _x -o nosort -o bashdefault -o default x else complete -F _x -o bashdefault -o default x fi