src/etc/completions/x.sh SHELL 5,274 lines View on github.com → Search inside
File is large — showing lines 1–2,000 of 5,274.
1_x() {2    local i cur prev opts cmd3    COMPREPLY=()4    cur="${COMP_WORDS[COMP_CWORD]}"5    prev="${COMP_WORDS[COMP_CWORD-1]}"6    cmd=""7    opts=""89    for i in ${COMP_WORDS[@]}10    do11        case "${cmd},${i}" in12            ",$1")13                cmd="x"14                ;;15            x,b)16                cmd="x__build"17                ;;18            x,bench)19                cmd="x__bench"20                ;;21            x,build)22                cmd="x__build"23                ;;24            x,c)25                cmd="x__check"26                ;;27            x,check)28                cmd="x__check"29                ;;30            x,clean)31                cmd="x__clean"32                ;;33            x,clippy)34                cmd="x__clippy"35                ;;36            x,d)37                cmd="x__doc"38                ;;39            x,dist)40                cmd="x__dist"41                ;;42            x,doc)43                cmd="x__doc"44                ;;45            x,fix)46                cmd="x__fix"47                ;;48            x,fmt)49                cmd="x__fmt"50                ;;51            x,install)52                cmd="x__install"53                ;;54            x,miri)55                cmd="x__miri"56                ;;57            x,perf)58                cmd="x__perf"59                ;;60            x,r)61                cmd="x__run"62                ;;63            x,run)64                cmd="x__run"65                ;;66            x,setup)67                cmd="x__setup"68                ;;69            x,t)70                cmd="x__test"71                ;;72            x,test)73                cmd="x__test"74                ;;75            x,vendor)76                cmd="x__vendor"77                ;;78            x__perf,benchmark)79                cmd="x__perf__benchmark"80                ;;81            x__perf,cachegrind)82                cmd="x__perf__cachegrind"83                ;;84            x__perf,compare)85                cmd="x__perf__compare"86                ;;87            x__perf,eprintln)88                cmd="x__perf__eprintln"89                ;;90            x__perf,samply)91                cmd="x__perf__samply"92                ;;93            *)94                ;;95        esac96    done9798    case "${cmd}" in99        x)100            opts="-v -q -i -j -h --verbose --quiet --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 b check c clippy fix fmt doc d test t miri bench clean dist install run r setup vendor perf"101            if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then102                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )103                return 0104            fi105            case "${prev}" in106                --config)107                    local oldifs108                    if [ -n "${IFS+x}" ]; then109                        oldifs="$IFS"110                    fi111                    IFS=$'\n'112                    COMPREPLY=($(compgen -f "${cur}"))113                    if [ -n "${oldifs+x}" ]; then114                        IFS="$oldifs"115                    fi116                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then117                        compopt -o filenames118                    fi119                    return 0120                    ;;121                --build-dir)122                    COMPREPLY=()123                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then124                        compopt -o plusdirs125                    fi126                    return 0127                    ;;128                --build)129                    COMPREPLY=("${cur}")130                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then131                        compopt -o nospace132                    fi133                    return 0134                    ;;135                --host)136                    COMPREPLY=("${cur}")137                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then138                        compopt -o nospace139                    fi140                    return 0141                    ;;142                --target)143                    COMPREPLY=("${cur}")144                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then145                        compopt -o nospace146                    fi147                    return 0148                    ;;149                --exclude)150                    COMPREPLY=($(compgen -f "${cur}"))151                    return 0152                    ;;153                --skip)154                    COMPREPLY=($(compgen -f "${cur}"))155                    return 0156                    ;;157                --rustc-error-format)158                    COMPREPLY=("${cur}")159                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then160                        compopt -o nospace161                    fi162                    return 0163                    ;;164                --on-fail)165                    COMPREPLY=($(compgen -f "${cur}"))166                    return 0167                    ;;168                --stage)169                    COMPREPLY=("${cur}")170                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then171                        compopt -o nospace172                    fi173                    return 0174                    ;;175                --keep-stage)176                    COMPREPLY=("${cur}")177                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then178                        compopt -o nospace179                    fi180                    return 0181                    ;;182                --keep-stage-std)183                    COMPREPLY=("${cur}")184                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then185                        compopt -o nospace186                    fi187                    return 0188                    ;;189                --src)190                    COMPREPLY=()191                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then192                        compopt -o plusdirs193                    fi194                    return 0195                    ;;196                --jobs)197                    COMPREPLY=("${cur}")198                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then199                        compopt -o nospace200                    fi201                    return 0202                    ;;203                -j)204                    COMPREPLY=("${cur}")205                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then206                        compopt -o nospace207                    fi208                    return 0209                    ;;210                --warnings)211                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))212                    return 0213                    ;;214                --color)215                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))216                    return 0217                    ;;218                --rust-profile-generate)219                    local oldifs220                    if [ -n "${IFS+x}" ]; then221                        oldifs="$IFS"222                    fi223                    IFS=$'\n'224                    COMPREPLY=($(compgen -f "${cur}"))225                    if [ -n "${oldifs+x}" ]; then226                        IFS="$oldifs"227                    fi228                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then229                        compopt -o filenames230                    fi231                    return 0232                    ;;233                --rust-profile-use)234                    local oldifs235                    if [ -n "${IFS+x}" ]; then236                        oldifs="$IFS"237                    fi238                    IFS=$'\n'239                    COMPREPLY=($(compgen -f "${cur}"))240                    if [ -n "${oldifs+x}" ]; then241                        IFS="$oldifs"242                    fi243                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then244                        compopt -o filenames245                    fi246                    return 0247                    ;;248                --llvm-profile-use)249                    local oldifs250                    if [ -n "${IFS+x}" ]; then251                        oldifs="$IFS"252                    fi253                    IFS=$'\n'254                    COMPREPLY=($(compgen -f "${cur}"))255                    if [ -n "${oldifs+x}" ]; then256                        IFS="$oldifs"257                    fi258                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then259                        compopt -o filenames260                    fi261                    return 0262                    ;;263                --reproducible-artifact)264                    COMPREPLY=($(compgen -f "${cur}"))265                    return 0266                    ;;267                --set)268                    COMPREPLY=("${cur}")269                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then270                        compopt -o nospace271                    fi272                    return 0273                    ;;274                --ci)275                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))276                    return 0277                    ;;278                *)279                    COMPREPLY=()280                    ;;281            esac282            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )283            return 0284            ;;285        x__bench)286            opts="-v -q -i -j -h --test-args --verbose --quiet --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]..."287            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then288                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )289                return 0290            fi291            case "${prev}" in292                --test-args)293                    COMPREPLY=($(compgen -f "${cur}"))294                    return 0295                    ;;296                --config)297                    local oldifs298                    if [ -n "${IFS+x}" ]; then299                        oldifs="$IFS"300                    fi301                    IFS=$'\n'302                    COMPREPLY=($(compgen -f "${cur}"))303                    if [ -n "${oldifs+x}" ]; then304                        IFS="$oldifs"305                    fi306                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then307                        compopt -o filenames308                    fi309                    return 0310                    ;;311                --build-dir)312                    COMPREPLY=()313                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then314                        compopt -o plusdirs315                    fi316                    return 0317                    ;;318                --build)319                    COMPREPLY=("${cur}")320                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then321                        compopt -o nospace322                    fi323                    return 0324                    ;;325                --host)326                    COMPREPLY=("${cur}")327                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then328                        compopt -o nospace329                    fi330                    return 0331                    ;;332                --target)333                    COMPREPLY=("${cur}")334                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then335                        compopt -o nospace336                    fi337                    return 0338                    ;;339                --exclude)340                    COMPREPLY=($(compgen -f "${cur}"))341                    return 0342                    ;;343                --skip)344                    COMPREPLY=($(compgen -f "${cur}"))345                    return 0346                    ;;347                --rustc-error-format)348                    COMPREPLY=("${cur}")349                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then350                        compopt -o nospace351                    fi352                    return 0353                    ;;354                --on-fail)355                    COMPREPLY=($(compgen -f "${cur}"))356                    return 0357                    ;;358                --stage)359                    COMPREPLY=("${cur}")360                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then361                        compopt -o nospace362                    fi363                    return 0364                    ;;365                --keep-stage)366                    COMPREPLY=("${cur}")367                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then368                        compopt -o nospace369                    fi370                    return 0371                    ;;372                --keep-stage-std)373                    COMPREPLY=("${cur}")374                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then375                        compopt -o nospace376                    fi377                    return 0378                    ;;379                --src)380                    COMPREPLY=()381                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then382                        compopt -o plusdirs383                    fi384                    return 0385                    ;;386                --jobs)387                    COMPREPLY=("${cur}")388                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then389                        compopt -o nospace390                    fi391                    return 0392                    ;;393                -j)394                    COMPREPLY=("${cur}")395                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then396                        compopt -o nospace397                    fi398                    return 0399                    ;;400                --warnings)401                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))402                    return 0403                    ;;404                --color)405                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))406                    return 0407                    ;;408                --rust-profile-generate)409                    local oldifs410                    if [ -n "${IFS+x}" ]; then411                        oldifs="$IFS"412                    fi413                    IFS=$'\n'414                    COMPREPLY=($(compgen -f "${cur}"))415                    if [ -n "${oldifs+x}" ]; then416                        IFS="$oldifs"417                    fi418                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then419                        compopt -o filenames420                    fi421                    return 0422                    ;;423                --rust-profile-use)424                    local oldifs425                    if [ -n "${IFS+x}" ]; then426                        oldifs="$IFS"427                    fi428                    IFS=$'\n'429                    COMPREPLY=($(compgen -f "${cur}"))430                    if [ -n "${oldifs+x}" ]; then431                        IFS="$oldifs"432                    fi433                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then434                        compopt -o filenames435                    fi436                    return 0437                    ;;438                --llvm-profile-use)439                    local oldifs440                    if [ -n "${IFS+x}" ]; then441                        oldifs="$IFS"442                    fi443                    IFS=$'\n'444                    COMPREPLY=($(compgen -f "${cur}"))445                    if [ -n "${oldifs+x}" ]; then446                        IFS="$oldifs"447                    fi448                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then449                        compopt -o filenames450                    fi451                    return 0452                    ;;453                --reproducible-artifact)454                    COMPREPLY=($(compgen -f "${cur}"))455                    return 0456                    ;;457                --set)458                    COMPREPLY=("${cur}")459                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then460                        compopt -o nospace461                    fi462                    return 0463                    ;;464                --ci)465                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))466                    return 0467                    ;;468                *)469                    COMPREPLY=()470                    ;;471            esac472            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )473            return 0474            ;;475        x__build)476            opts="-v -q -i -j -h --timings --verbose --quiet --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]..."477            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then478                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )479                return 0480            fi481            case "${prev}" in482                --config)483                    local oldifs484                    if [ -n "${IFS+x}" ]; then485                        oldifs="$IFS"486                    fi487                    IFS=$'\n'488                    COMPREPLY=($(compgen -f "${cur}"))489                    if [ -n "${oldifs+x}" ]; then490                        IFS="$oldifs"491                    fi492                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then493                        compopt -o filenames494                    fi495                    return 0496                    ;;497                --build-dir)498                    COMPREPLY=()499                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then500                        compopt -o plusdirs501                    fi502                    return 0503                    ;;504                --build)505                    COMPREPLY=("${cur}")506                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then507                        compopt -o nospace508                    fi509                    return 0510                    ;;511                --host)512                    COMPREPLY=("${cur}")513                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then514                        compopt -o nospace515                    fi516                    return 0517                    ;;518                --target)519                    COMPREPLY=("${cur}")520                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then521                        compopt -o nospace522                    fi523                    return 0524                    ;;525                --exclude)526                    COMPREPLY=($(compgen -f "${cur}"))527                    return 0528                    ;;529                --skip)530                    COMPREPLY=($(compgen -f "${cur}"))531                    return 0532                    ;;533                --rustc-error-format)534                    COMPREPLY=("${cur}")535                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then536                        compopt -o nospace537                    fi538                    return 0539                    ;;540                --on-fail)541                    COMPREPLY=($(compgen -f "${cur}"))542                    return 0543                    ;;544                --stage)545                    COMPREPLY=("${cur}")546                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then547                        compopt -o nospace548                    fi549                    return 0550                    ;;551                --keep-stage)552                    COMPREPLY=("${cur}")553                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then554                        compopt -o nospace555                    fi556                    return 0557                    ;;558                --keep-stage-std)559                    COMPREPLY=("${cur}")560                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then561                        compopt -o nospace562                    fi563                    return 0564                    ;;565                --src)566                    COMPREPLY=()567                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then568                        compopt -o plusdirs569                    fi570                    return 0571                    ;;572                --jobs)573                    COMPREPLY=("${cur}")574                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then575                        compopt -o nospace576                    fi577                    return 0578                    ;;579                -j)580                    COMPREPLY=("${cur}")581                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then582                        compopt -o nospace583                    fi584                    return 0585                    ;;586                --warnings)587                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))588                    return 0589                    ;;590                --color)591                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))592                    return 0593                    ;;594                --rust-profile-generate)595                    local oldifs596                    if [ -n "${IFS+x}" ]; then597                        oldifs="$IFS"598                    fi599                    IFS=$'\n'600                    COMPREPLY=($(compgen -f "${cur}"))601                    if [ -n "${oldifs+x}" ]; then602                        IFS="$oldifs"603                    fi604                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then605                        compopt -o filenames606                    fi607                    return 0608                    ;;609                --rust-profile-use)610                    local oldifs611                    if [ -n "${IFS+x}" ]; then612                        oldifs="$IFS"613                    fi614                    IFS=$'\n'615                    COMPREPLY=($(compgen -f "${cur}"))616                    if [ -n "${oldifs+x}" ]; then617                        IFS="$oldifs"618                    fi619                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then620                        compopt -o filenames621                    fi622                    return 0623                    ;;624                --llvm-profile-use)625                    local oldifs626                    if [ -n "${IFS+x}" ]; then627                        oldifs="$IFS"628                    fi629                    IFS=$'\n'630                    COMPREPLY=($(compgen -f "${cur}"))631                    if [ -n "${oldifs+x}" ]; then632                        IFS="$oldifs"633                    fi634                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then635                        compopt -o filenames636                    fi637                    return 0638                    ;;639                --reproducible-artifact)640                    COMPREPLY=($(compgen -f "${cur}"))641                    return 0642                    ;;643                --set)644                    COMPREPLY=("${cur}")645                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then646                        compopt -o nospace647                    fi648                    return 0649                    ;;650                --ci)651                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))652                    return 0653                    ;;654                *)655                    COMPREPLY=()656                    ;;657            esac658            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )659            return 0660            ;;661        x__build)662            opts="-v -q -i -j -h --timings --verbose --quiet --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]..."663            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then664                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )665                return 0666            fi667            case "${prev}" in668                --config)669                    local oldifs670                    if [ -n "${IFS+x}" ]; then671                        oldifs="$IFS"672                    fi673                    IFS=$'\n'674                    COMPREPLY=($(compgen -f "${cur}"))675                    if [ -n "${oldifs+x}" ]; then676                        IFS="$oldifs"677                    fi678                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then679                        compopt -o filenames680                    fi681                    return 0682                    ;;683                --build-dir)684                    COMPREPLY=()685                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then686                        compopt -o plusdirs687                    fi688                    return 0689                    ;;690                --build)691                    COMPREPLY=("${cur}")692                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then693                        compopt -o nospace694                    fi695                    return 0696                    ;;697                --host)698                    COMPREPLY=("${cur}")699                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then700                        compopt -o nospace701                    fi702                    return 0703                    ;;704                --target)705                    COMPREPLY=("${cur}")706                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then707                        compopt -o nospace708                    fi709                    return 0710                    ;;711                --exclude)712                    COMPREPLY=($(compgen -f "${cur}"))713                    return 0714                    ;;715                --skip)716                    COMPREPLY=($(compgen -f "${cur}"))717                    return 0718                    ;;719                --rustc-error-format)720                    COMPREPLY=("${cur}")721                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then722                        compopt -o nospace723                    fi724                    return 0725                    ;;726                --on-fail)727                    COMPREPLY=($(compgen -f "${cur}"))728                    return 0729                    ;;730                --stage)731                    COMPREPLY=("${cur}")732                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then733                        compopt -o nospace734                    fi735                    return 0736                    ;;737                --keep-stage)738                    COMPREPLY=("${cur}")739                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then740                        compopt -o nospace741                    fi742                    return 0743                    ;;744                --keep-stage-std)745                    COMPREPLY=("${cur}")746                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then747                        compopt -o nospace748                    fi749                    return 0750                    ;;751                --src)752                    COMPREPLY=()753                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then754                        compopt -o plusdirs755                    fi756                    return 0757                    ;;758                --jobs)759                    COMPREPLY=("${cur}")760                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then761                        compopt -o nospace762                    fi763                    return 0764                    ;;765                -j)766                    COMPREPLY=("${cur}")767                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then768                        compopt -o nospace769                    fi770                    return 0771                    ;;772                --warnings)773                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))774                    return 0775                    ;;776                --color)777                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))778                    return 0779                    ;;780                --rust-profile-generate)781                    local oldifs782                    if [ -n "${IFS+x}" ]; then783                        oldifs="$IFS"784                    fi785                    IFS=$'\n'786                    COMPREPLY=($(compgen -f "${cur}"))787                    if [ -n "${oldifs+x}" ]; then788                        IFS="$oldifs"789                    fi790                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then791                        compopt -o filenames792                    fi793                    return 0794                    ;;795                --rust-profile-use)796                    local oldifs797                    if [ -n "${IFS+x}" ]; then798                        oldifs="$IFS"799                    fi800                    IFS=$'\n'801                    COMPREPLY=($(compgen -f "${cur}"))802                    if [ -n "${oldifs+x}" ]; then803                        IFS="$oldifs"804                    fi805                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then806                        compopt -o filenames807                    fi808                    return 0809                    ;;810                --llvm-profile-use)811                    local oldifs812                    if [ -n "${IFS+x}" ]; then813                        oldifs="$IFS"814                    fi815                    IFS=$'\n'816                    COMPREPLY=($(compgen -f "${cur}"))817                    if [ -n "${oldifs+x}" ]; then818                        IFS="$oldifs"819                    fi820                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then821                        compopt -o filenames822                    fi823                    return 0824                    ;;825                --reproducible-artifact)826                    COMPREPLY=($(compgen -f "${cur}"))827                    return 0828                    ;;829                --set)830                    COMPREPLY=("${cur}")831                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then832                        compopt -o nospace833                    fi834                    return 0835                    ;;836                --ci)837                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))838                    return 0839                    ;;840                *)841                    COMPREPLY=()842                    ;;843            esac844            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )845            return 0846            ;;847        x__check)848            opts="-v -q -i -j -h --all-targets --timings --verbose --quiet --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]..."849            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then850                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )851                return 0852            fi853            case "${prev}" in854                --config)855                    local oldifs856                    if [ -n "${IFS+x}" ]; then857                        oldifs="$IFS"858                    fi859                    IFS=$'\n'860                    COMPREPLY=($(compgen -f "${cur}"))861                    if [ -n "${oldifs+x}" ]; then862                        IFS="$oldifs"863                    fi864                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then865                        compopt -o filenames866                    fi867                    return 0868                    ;;869                --build-dir)870                    COMPREPLY=()871                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then872                        compopt -o plusdirs873                    fi874                    return 0875                    ;;876                --build)877                    COMPREPLY=("${cur}")878                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then879                        compopt -o nospace880                    fi881                    return 0882                    ;;883                --host)884                    COMPREPLY=("${cur}")885                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then886                        compopt -o nospace887                    fi888                    return 0889                    ;;890                --target)891                    COMPREPLY=("${cur}")892                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then893                        compopt -o nospace894                    fi895                    return 0896                    ;;897                --exclude)898                    COMPREPLY=($(compgen -f "${cur}"))899                    return 0900                    ;;901                --skip)902                    COMPREPLY=($(compgen -f "${cur}"))903                    return 0904                    ;;905                --rustc-error-format)906                    COMPREPLY=("${cur}")907                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then908                        compopt -o nospace909                    fi910                    return 0911                    ;;912                --on-fail)913                    COMPREPLY=($(compgen -f "${cur}"))914                    return 0915                    ;;916                --stage)917                    COMPREPLY=("${cur}")918                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then919                        compopt -o nospace920                    fi921                    return 0922                    ;;923                --keep-stage)924                    COMPREPLY=("${cur}")925                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then926                        compopt -o nospace927                    fi928                    return 0929                    ;;930                --keep-stage-std)931                    COMPREPLY=("${cur}")932                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then933                        compopt -o nospace934                    fi935                    return 0936                    ;;937                --src)938                    COMPREPLY=()939                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then940                        compopt -o plusdirs941                    fi942                    return 0943                    ;;944                --jobs)945                    COMPREPLY=("${cur}")946                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then947                        compopt -o nospace948                    fi949                    return 0950                    ;;951                -j)952                    COMPREPLY=("${cur}")953                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then954                        compopt -o nospace955                    fi956                    return 0957                    ;;958                --warnings)959                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))960                    return 0961                    ;;962                --color)963                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))964                    return 0965                    ;;966                --rust-profile-generate)967                    local oldifs968                    if [ -n "${IFS+x}" ]; then969                        oldifs="$IFS"970                    fi971                    IFS=$'\n'972                    COMPREPLY=($(compgen -f "${cur}"))973                    if [ -n "${oldifs+x}" ]; then974                        IFS="$oldifs"975                    fi976                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then977                        compopt -o filenames978                    fi979                    return 0980                    ;;981                --rust-profile-use)982                    local oldifs983                    if [ -n "${IFS+x}" ]; then984                        oldifs="$IFS"985                    fi986                    IFS=$'\n'987                    COMPREPLY=($(compgen -f "${cur}"))988                    if [ -n "${oldifs+x}" ]; then989                        IFS="$oldifs"990                    fi991                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then992                        compopt -o filenames993                    fi994                    return 0995                    ;;996                --llvm-profile-use)997                    local oldifs998                    if [ -n "${IFS+x}" ]; then999                        oldifs="$IFS"1000                    fi1001                    IFS=$'\n'1002                    COMPREPLY=($(compgen -f "${cur}"))1003                    if [ -n "${oldifs+x}" ]; then1004                        IFS="$oldifs"1005                    fi1006                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1007                        compopt -o filenames1008                    fi1009                    return 01010                    ;;1011                --reproducible-artifact)1012                    COMPREPLY=($(compgen -f "${cur}"))1013                    return 01014                    ;;1015                --set)1016                    COMPREPLY=("${cur}")1017                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1018                        compopt -o nospace1019                    fi1020                    return 01021                    ;;1022                --ci)1023                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1024                    return 01025                    ;;1026                *)1027                    COMPREPLY=()1028                    ;;1029            esac1030            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1031            return 01032            ;;1033        x__check)1034            opts="-v -q -i -j -h --all-targets --timings --verbose --quiet --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]..."1035            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1036                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1037                return 01038            fi1039            case "${prev}" in1040                --config)1041                    local oldifs1042                    if [ -n "${IFS+x}" ]; then1043                        oldifs="$IFS"1044                    fi1045                    IFS=$'\n'1046                    COMPREPLY=($(compgen -f "${cur}"))1047                    if [ -n "${oldifs+x}" ]; then1048                        IFS="$oldifs"1049                    fi1050                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1051                        compopt -o filenames1052                    fi1053                    return 01054                    ;;1055                --build-dir)1056                    COMPREPLY=()1057                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1058                        compopt -o plusdirs1059                    fi1060                    return 01061                    ;;1062                --build)1063                    COMPREPLY=("${cur}")1064                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1065                        compopt -o nospace1066                    fi1067                    return 01068                    ;;1069                --host)1070                    COMPREPLY=("${cur}")1071                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1072                        compopt -o nospace1073                    fi1074                    return 01075                    ;;1076                --target)1077                    COMPREPLY=("${cur}")1078                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1079                        compopt -o nospace1080                    fi1081                    return 01082                    ;;1083                --exclude)1084                    COMPREPLY=($(compgen -f "${cur}"))1085                    return 01086                    ;;1087                --skip)1088                    COMPREPLY=($(compgen -f "${cur}"))1089                    return 01090                    ;;1091                --rustc-error-format)1092                    COMPREPLY=("${cur}")1093                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1094                        compopt -o nospace1095                    fi1096                    return 01097                    ;;1098                --on-fail)1099                    COMPREPLY=($(compgen -f "${cur}"))1100                    return 01101                    ;;1102                --stage)1103                    COMPREPLY=("${cur}")1104                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1105                        compopt -o nospace1106                    fi1107                    return 01108                    ;;1109                --keep-stage)1110                    COMPREPLY=("${cur}")1111                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1112                        compopt -o nospace1113                    fi1114                    return 01115                    ;;1116                --keep-stage-std)1117                    COMPREPLY=("${cur}")1118                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1119                        compopt -o nospace1120                    fi1121                    return 01122                    ;;1123                --src)1124                    COMPREPLY=()1125                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1126                        compopt -o plusdirs1127                    fi1128                    return 01129                    ;;1130                --jobs)1131                    COMPREPLY=("${cur}")1132                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1133                        compopt -o nospace1134                    fi1135                    return 01136                    ;;1137                -j)1138                    COMPREPLY=("${cur}")1139                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1140                        compopt -o nospace1141                    fi1142                    return 01143                    ;;1144                --warnings)1145                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))1146                    return 01147                    ;;1148                --color)1149                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))1150                    return 01151                    ;;1152                --rust-profile-generate)1153                    local oldifs1154                    if [ -n "${IFS+x}" ]; then1155                        oldifs="$IFS"1156                    fi1157                    IFS=$'\n'1158                    COMPREPLY=($(compgen -f "${cur}"))1159                    if [ -n "${oldifs+x}" ]; then1160                        IFS="$oldifs"1161                    fi1162                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1163                        compopt -o filenames1164                    fi1165                    return 01166                    ;;1167                --rust-profile-use)1168                    local oldifs1169                    if [ -n "${IFS+x}" ]; then1170                        oldifs="$IFS"1171                    fi1172                    IFS=$'\n'1173                    COMPREPLY=($(compgen -f "${cur}"))1174                    if [ -n "${oldifs+x}" ]; then1175                        IFS="$oldifs"1176                    fi1177                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1178                        compopt -o filenames1179                    fi1180                    return 01181                    ;;1182                --llvm-profile-use)1183                    local oldifs1184                    if [ -n "${IFS+x}" ]; then1185                        oldifs="$IFS"1186                    fi1187                    IFS=$'\n'1188                    COMPREPLY=($(compgen -f "${cur}"))1189                    if [ -n "${oldifs+x}" ]; then1190                        IFS="$oldifs"1191                    fi1192                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1193                        compopt -o filenames1194                    fi1195                    return 01196                    ;;1197                --reproducible-artifact)1198                    COMPREPLY=($(compgen -f "${cur}"))1199                    return 01200                    ;;1201                --set)1202                    COMPREPLY=("${cur}")1203                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1204                        compopt -o nospace1205                    fi1206                    return 01207                    ;;1208                --ci)1209                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1210                    return 01211                    ;;1212                *)1213                    COMPREPLY=()1214                    ;;1215            esac1216            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1217            return 01218            ;;1219        x__clean)1220            opts="-v -q -i -j -h --all --stage --verbose --quiet --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]..."1221            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1222                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1223                return 01224            fi1225            case "${prev}" in1226                --stage)1227                    COMPREPLY=($(compgen -f "${cur}"))1228                    return 01229                    ;;1230                --config)1231                    local oldifs1232                    if [ -n "${IFS+x}" ]; then1233                        oldifs="$IFS"1234                    fi1235                    IFS=$'\n'1236                    COMPREPLY=($(compgen -f "${cur}"))1237                    if [ -n "${oldifs+x}" ]; then1238                        IFS="$oldifs"1239                    fi1240                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1241                        compopt -o filenames1242                    fi1243                    return 01244                    ;;1245                --build-dir)1246                    COMPREPLY=()1247                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1248                        compopt -o plusdirs1249                    fi1250                    return 01251                    ;;1252                --build)1253                    COMPREPLY=("${cur}")1254                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1255                        compopt -o nospace1256                    fi1257                    return 01258                    ;;1259                --host)1260                    COMPREPLY=("${cur}")1261                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1262                        compopt -o nospace1263                    fi1264                    return 01265                    ;;1266                --target)1267                    COMPREPLY=("${cur}")1268                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1269                        compopt -o nospace1270                    fi1271                    return 01272                    ;;1273                --exclude)1274                    COMPREPLY=($(compgen -f "${cur}"))1275                    return 01276                    ;;1277                --skip)1278                    COMPREPLY=($(compgen -f "${cur}"))1279                    return 01280                    ;;1281                --rustc-error-format)1282                    COMPREPLY=("${cur}")1283                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1284                        compopt -o nospace1285                    fi1286                    return 01287                    ;;1288                --on-fail)1289                    COMPREPLY=($(compgen -f "${cur}"))1290                    return 01291                    ;;1292                --keep-stage)1293                    COMPREPLY=("${cur}")1294                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1295                        compopt -o nospace1296                    fi1297                    return 01298                    ;;1299                --keep-stage-std)1300                    COMPREPLY=("${cur}")1301                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1302                        compopt -o nospace1303                    fi1304                    return 01305                    ;;1306                --src)1307                    COMPREPLY=()1308                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1309                        compopt -o plusdirs1310                    fi1311                    return 01312                    ;;1313                --jobs)1314                    COMPREPLY=("${cur}")1315                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1316                        compopt -o nospace1317                    fi1318                    return 01319                    ;;1320                -j)1321                    COMPREPLY=("${cur}")1322                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1323                        compopt -o nospace1324                    fi1325                    return 01326                    ;;1327                --warnings)1328                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))1329                    return 01330                    ;;1331                --color)1332                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))1333                    return 01334                    ;;1335                --rust-profile-generate)1336                    local oldifs1337                    if [ -n "${IFS+x}" ]; then1338                        oldifs="$IFS"1339                    fi1340                    IFS=$'\n'1341                    COMPREPLY=($(compgen -f "${cur}"))1342                    if [ -n "${oldifs+x}" ]; then1343                        IFS="$oldifs"1344                    fi1345                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1346                        compopt -o filenames1347                    fi1348                    return 01349                    ;;1350                --rust-profile-use)1351                    local oldifs1352                    if [ -n "${IFS+x}" ]; then1353                        oldifs="$IFS"1354                    fi1355                    IFS=$'\n'1356                    COMPREPLY=($(compgen -f "${cur}"))1357                    if [ -n "${oldifs+x}" ]; then1358                        IFS="$oldifs"1359                    fi1360                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1361                        compopt -o filenames1362                    fi1363                    return 01364                    ;;1365                --llvm-profile-use)1366                    local oldifs1367                    if [ -n "${IFS+x}" ]; then1368                        oldifs="$IFS"1369                    fi1370                    IFS=$'\n'1371                    COMPREPLY=($(compgen -f "${cur}"))1372                    if [ -n "${oldifs+x}" ]; then1373                        IFS="$oldifs"1374                    fi1375                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1376                        compopt -o filenames1377                    fi1378                    return 01379                    ;;1380                --reproducible-artifact)1381                    COMPREPLY=($(compgen -f "${cur}"))1382                    return 01383                    ;;1384                --set)1385                    COMPREPLY=("${cur}")1386                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1387                        compopt -o nospace1388                    fi1389                    return 01390                    ;;1391                --ci)1392                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1393                    return 01394                    ;;1395                *)1396                    COMPREPLY=()1397                    ;;1398            esac1399            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1400            return 01401            ;;1402        x__clippy)1403            opts="-A -D -W -F -v -q -i -j -h --fix --allow-dirty --allow-staged --verbose --quiet --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]..."1404            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1405                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1406                return 01407            fi1408            case "${prev}" in1409                -A)1410                    COMPREPLY=($(compgen -f "${cur}"))1411                    return 01412                    ;;1413                -D)1414                    COMPREPLY=($(compgen -f "${cur}"))1415                    return 01416                    ;;1417                -W)1418                    COMPREPLY=($(compgen -f "${cur}"))1419                    return 01420                    ;;1421                -F)1422                    COMPREPLY=($(compgen -f "${cur}"))1423                    return 01424                    ;;1425                --config)1426                    local oldifs1427                    if [ -n "${IFS+x}" ]; then1428                        oldifs="$IFS"1429                    fi1430                    IFS=$'\n'1431                    COMPREPLY=($(compgen -f "${cur}"))1432                    if [ -n "${oldifs+x}" ]; then1433                        IFS="$oldifs"1434                    fi1435                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1436                        compopt -o filenames1437                    fi1438                    return 01439                    ;;1440                --build-dir)1441                    COMPREPLY=()1442                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1443                        compopt -o plusdirs1444                    fi1445                    return 01446                    ;;1447                --build)1448                    COMPREPLY=("${cur}")1449                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1450                        compopt -o nospace1451                    fi1452                    return 01453                    ;;1454                --host)1455                    COMPREPLY=("${cur}")1456                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1457                        compopt -o nospace1458                    fi1459                    return 01460                    ;;1461                --target)1462                    COMPREPLY=("${cur}")1463                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1464                        compopt -o nospace1465                    fi1466                    return 01467                    ;;1468                --exclude)1469                    COMPREPLY=($(compgen -f "${cur}"))1470                    return 01471                    ;;1472                --skip)1473                    COMPREPLY=($(compgen -f "${cur}"))1474                    return 01475                    ;;1476                --rustc-error-format)1477                    COMPREPLY=("${cur}")1478                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1479                        compopt -o nospace1480                    fi1481                    return 01482                    ;;1483                --on-fail)1484                    COMPREPLY=($(compgen -f "${cur}"))1485                    return 01486                    ;;1487                --stage)1488                    COMPREPLY=("${cur}")1489                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1490                        compopt -o nospace1491                    fi1492                    return 01493                    ;;1494                --keep-stage)1495                    COMPREPLY=("${cur}")1496                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1497                        compopt -o nospace1498                    fi1499                    return 01500                    ;;1501                --keep-stage-std)1502                    COMPREPLY=("${cur}")1503                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1504                        compopt -o nospace1505                    fi1506                    return 01507                    ;;1508                --src)1509                    COMPREPLY=()1510                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1511                        compopt -o plusdirs1512                    fi1513                    return 01514                    ;;1515                --jobs)1516                    COMPREPLY=("${cur}")1517                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1518                        compopt -o nospace1519                    fi1520                    return 01521                    ;;1522                -j)1523                    COMPREPLY=("${cur}")1524                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1525                        compopt -o nospace1526                    fi1527                    return 01528                    ;;1529                --warnings)1530                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))1531                    return 01532                    ;;1533                --color)1534                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))1535                    return 01536                    ;;1537                --rust-profile-generate)1538                    local oldifs1539                    if [ -n "${IFS+x}" ]; then1540                        oldifs="$IFS"1541                    fi1542                    IFS=$'\n'1543                    COMPREPLY=($(compgen -f "${cur}"))1544                    if [ -n "${oldifs+x}" ]; then1545                        IFS="$oldifs"1546                    fi1547                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1548                        compopt -o filenames1549                    fi1550                    return 01551                    ;;1552                --rust-profile-use)1553                    local oldifs1554                    if [ -n "${IFS+x}" ]; then1555                        oldifs="$IFS"1556                    fi1557                    IFS=$'\n'1558                    COMPREPLY=($(compgen -f "${cur}"))1559                    if [ -n "${oldifs+x}" ]; then1560                        IFS="$oldifs"1561                    fi1562                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1563                        compopt -o filenames1564                    fi1565                    return 01566                    ;;1567                --llvm-profile-use)1568                    local oldifs1569                    if [ -n "${IFS+x}" ]; then1570                        oldifs="$IFS"1571                    fi1572                    IFS=$'\n'1573                    COMPREPLY=($(compgen -f "${cur}"))1574                    if [ -n "${oldifs+x}" ]; then1575                        IFS="$oldifs"1576                    fi1577                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1578                        compopt -o filenames1579                    fi1580                    return 01581                    ;;1582                --reproducible-artifact)1583                    COMPREPLY=($(compgen -f "${cur}"))1584                    return 01585                    ;;1586                --set)1587                    COMPREPLY=("${cur}")1588                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1589                        compopt -o nospace1590                    fi1591                    return 01592                    ;;1593                --ci)1594                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1595                    return 01596                    ;;1597                *)1598                    COMPREPLY=()1599                    ;;1600            esac1601            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1602            return 01603            ;;1604        x__dist)1605            opts="-v -q -i -j -h --verbose --quiet --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]..."1606            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1607                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1608                return 01609            fi1610            case "${prev}" in1611                --config)1612                    local oldifs1613                    if [ -n "${IFS+x}" ]; then1614                        oldifs="$IFS"1615                    fi1616                    IFS=$'\n'1617                    COMPREPLY=($(compgen -f "${cur}"))1618                    if [ -n "${oldifs+x}" ]; then1619                        IFS="$oldifs"1620                    fi1621                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1622                        compopt -o filenames1623                    fi1624                    return 01625                    ;;1626                --build-dir)1627                    COMPREPLY=()1628                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1629                        compopt -o plusdirs1630                    fi1631                    return 01632                    ;;1633                --build)1634                    COMPREPLY=("${cur}")1635                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1636                        compopt -o nospace1637                    fi1638                    return 01639                    ;;1640                --host)1641                    COMPREPLY=("${cur}")1642                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1643                        compopt -o nospace1644                    fi1645                    return 01646                    ;;1647                --target)1648                    COMPREPLY=("${cur}")1649                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1650                        compopt -o nospace1651                    fi1652                    return 01653                    ;;1654                --exclude)1655                    COMPREPLY=($(compgen -f "${cur}"))1656                    return 01657                    ;;1658                --skip)1659                    COMPREPLY=($(compgen -f "${cur}"))1660                    return 01661                    ;;1662                --rustc-error-format)1663                    COMPREPLY=("${cur}")1664                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1665                        compopt -o nospace1666                    fi1667                    return 01668                    ;;1669                --on-fail)1670                    COMPREPLY=($(compgen -f "${cur}"))1671                    return 01672                    ;;1673                --stage)1674                    COMPREPLY=("${cur}")1675                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1676                        compopt -o nospace1677                    fi1678                    return 01679                    ;;1680                --keep-stage)1681                    COMPREPLY=("${cur}")1682                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1683                        compopt -o nospace1684                    fi1685                    return 01686                    ;;1687                --keep-stage-std)1688                    COMPREPLY=("${cur}")1689                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1690                        compopt -o nospace1691                    fi1692                    return 01693                    ;;1694                --src)1695                    COMPREPLY=()1696                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1697                        compopt -o plusdirs1698                    fi1699                    return 01700                    ;;1701                --jobs)1702                    COMPREPLY=("${cur}")1703                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1704                        compopt -o nospace1705                    fi1706                    return 01707                    ;;1708                -j)1709                    COMPREPLY=("${cur}")1710                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1711                        compopt -o nospace1712                    fi1713                    return 01714                    ;;1715                --warnings)1716                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))1717                    return 01718                    ;;1719                --color)1720                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))1721                    return 01722                    ;;1723                --rust-profile-generate)1724                    local oldifs1725                    if [ -n "${IFS+x}" ]; then1726                        oldifs="$IFS"1727                    fi1728                    IFS=$'\n'1729                    COMPREPLY=($(compgen -f "${cur}"))1730                    if [ -n "${oldifs+x}" ]; then1731                        IFS="$oldifs"1732                    fi1733                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1734                        compopt -o filenames1735                    fi1736                    return 01737                    ;;1738                --rust-profile-use)1739                    local oldifs1740                    if [ -n "${IFS+x}" ]; then1741                        oldifs="$IFS"1742                    fi1743                    IFS=$'\n'1744                    COMPREPLY=($(compgen -f "${cur}"))1745                    if [ -n "${oldifs+x}" ]; then1746                        IFS="$oldifs"1747                    fi1748                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1749                        compopt -o filenames1750                    fi1751                    return 01752                    ;;1753                --llvm-profile-use)1754                    local oldifs1755                    if [ -n "${IFS+x}" ]; then1756                        oldifs="$IFS"1757                    fi1758                    IFS=$'\n'1759                    COMPREPLY=($(compgen -f "${cur}"))1760                    if [ -n "${oldifs+x}" ]; then1761                        IFS="$oldifs"1762                    fi1763                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1764                        compopt -o filenames1765                    fi1766                    return 01767                    ;;1768                --reproducible-artifact)1769                    COMPREPLY=($(compgen -f "${cur}"))1770                    return 01771                    ;;1772                --set)1773                    COMPREPLY=("${cur}")1774                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1775                        compopt -o nospace1776                    fi1777                    return 01778                    ;;1779                --ci)1780                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1781                    return 01782                    ;;1783                *)1784                    COMPREPLY=()1785                    ;;1786            esac1787            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1788            return 01789            ;;1790        x__doc)1791            opts="-v -q -i -j -h --open --json --verbose --quiet --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]..."1792            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1793                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1794                return 01795            fi1796            case "${prev}" in1797                --config)1798                    local oldifs1799                    if [ -n "${IFS+x}" ]; then1800                        oldifs="$IFS"1801                    fi1802                    IFS=$'\n'1803                    COMPREPLY=($(compgen -f "${cur}"))1804                    if [ -n "${oldifs+x}" ]; then1805                        IFS="$oldifs"1806                    fi1807                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1808                        compopt -o filenames1809                    fi1810                    return 01811                    ;;1812                --build-dir)1813                    COMPREPLY=()1814                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1815                        compopt -o plusdirs1816                    fi1817                    return 01818                    ;;1819                --build)1820                    COMPREPLY=("${cur}")1821                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1822                        compopt -o nospace1823                    fi1824                    return 01825                    ;;1826                --host)1827                    COMPREPLY=("${cur}")1828                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1829                        compopt -o nospace1830                    fi1831                    return 01832                    ;;1833                --target)1834                    COMPREPLY=("${cur}")1835                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1836                        compopt -o nospace1837                    fi1838                    return 01839                    ;;1840                --exclude)1841                    COMPREPLY=($(compgen -f "${cur}"))1842                    return 01843                    ;;1844                --skip)1845                    COMPREPLY=($(compgen -f "${cur}"))1846                    return 01847                    ;;1848                --rustc-error-format)1849                    COMPREPLY=("${cur}")1850                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1851                        compopt -o nospace1852                    fi1853                    return 01854                    ;;1855                --on-fail)1856                    COMPREPLY=($(compgen -f "${cur}"))1857                    return 01858                    ;;1859                --stage)1860                    COMPREPLY=("${cur}")1861                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1862                        compopt -o nospace1863                    fi1864                    return 01865                    ;;1866                --keep-stage)1867                    COMPREPLY=("${cur}")1868                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1869                        compopt -o nospace1870                    fi1871                    return 01872                    ;;1873                --keep-stage-std)1874                    COMPREPLY=("${cur}")1875                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1876                        compopt -o nospace1877                    fi1878                    return 01879                    ;;1880                --src)1881                    COMPREPLY=()1882                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1883                        compopt -o plusdirs1884                    fi1885                    return 01886                    ;;1887                --jobs)1888                    COMPREPLY=("${cur}")1889                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1890                        compopt -o nospace1891                    fi1892                    return 01893                    ;;1894                -j)1895                    COMPREPLY=("${cur}")1896                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1897                        compopt -o nospace1898                    fi1899                    return 01900                    ;;1901                --warnings)1902                    COMPREPLY=($(compgen -W "deny warn default" -- "${cur}"))1903                    return 01904                    ;;1905                --color)1906                    COMPREPLY=($(compgen -W "always never auto" -- "${cur}"))1907                    return 01908                    ;;1909                --rust-profile-generate)1910                    local oldifs1911                    if [ -n "${IFS+x}" ]; then1912                        oldifs="$IFS"1913                    fi1914                    IFS=$'\n'1915                    COMPREPLY=($(compgen -f "${cur}"))1916                    if [ -n "${oldifs+x}" ]; then1917                        IFS="$oldifs"1918                    fi1919                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1920                        compopt -o filenames1921                    fi1922                    return 01923                    ;;1924                --rust-profile-use)1925                    local oldifs1926                    if [ -n "${IFS+x}" ]; then1927                        oldifs="$IFS"1928                    fi1929                    IFS=$'\n'1930                    COMPREPLY=($(compgen -f "${cur}"))1931                    if [ -n "${oldifs+x}" ]; then1932                        IFS="$oldifs"1933                    fi1934                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1935                        compopt -o filenames1936                    fi1937                    return 01938                    ;;1939                --llvm-profile-use)1940                    local oldifs1941                    if [ -n "${IFS+x}" ]; then1942                        oldifs="$IFS"1943                    fi1944                    IFS=$'\n'1945                    COMPREPLY=($(compgen -f "${cur}"))1946                    if [ -n "${oldifs+x}" ]; then1947                        IFS="$oldifs"1948                    fi1949                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1950                        compopt -o filenames1951                    fi1952                    return 01953                    ;;1954                --reproducible-artifact)1955                    COMPREPLY=($(compgen -f "${cur}"))1956                    return 01957                    ;;1958                --set)1959                    COMPREPLY=("${cur}")1960                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1961                        compopt -o nospace1962                    fi1963                    return 01964                    ;;1965                --ci)1966                    COMPREPLY=($(compgen -W "true false" -- "${cur}"))1967                    return 01968                    ;;1969                *)1970                    COMPREPLY=()1971                    ;;1972            esac1973            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1974            return 01975            ;;1976        x__doc)1977            opts="-v -q -i -j -h --open --json --verbose --quiet --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]..."1978            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then1979                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )1980                return 01981            fi1982            case "${prev}" in1983                --config)1984                    local oldifs1985                    if [ -n "${IFS+x}" ]; then1986                        oldifs="$IFS"1987                    fi1988                    IFS=$'\n'1989                    COMPREPLY=($(compgen -f "${cur}"))1990                    if [ -n "${oldifs+x}" ]; then1991                        IFS="$oldifs"1992                    fi1993                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then1994                        compopt -o filenames1995                    fi1996                    return 01997                    ;;1998                --build-dir)1999                    COMPREPLY=()2000                    if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.