_x.py() { 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.py" ;; x.py,bench) cmd="x.py__bench" ;; x.py,build) cmd="x.py__build" ;; x.py,check) cmd="x.py__check" ;; x.py,clean) cmd="x.py__clean" ;; x.py,clippy) cmd="x.py__clippy" ;; x.py,dist) cmd="x.py__dist" ;; x.py,doc) cmd="x.py__doc" ;; x.py,fix) cmd="x.py__fix" ;; x.py,fmt) cmd="x.py__fmt" ;; x.py,install) cmd="x.py__install" ;; x.py,miri) cmd="x.py__miri" ;; x.py,perf) cmd="x.py__perf" ;; x.py,run) cmd="x.py__run" ;; x.py,setup) cmd="x.py__setup" ;; x.py,test) cmd="x.py__test" ;; x.py,vendor) cmd="x.py__vendor" ;; x.py__perf,benchmark) cmd="x.py__perf__benchmark" ;; x.py__perf,cachegrind) cmd="x.py__perf__cachegrind" ;; x.py__perf,compare) cmd="x.py__perf__compare" ;; x.py__perf,eprintln) cmd="x.py__perf__eprintln" ;; x.py__perf,samply) cmd="x.py__perf__samply" ;; *) ;; esac done case "${cmd}" in x.py) 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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py__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.py -o nosort -o bashdefault -o default x.py else complete -F _x.py -o bashdefault -o default x.py fi