Skip to content

Commit 12c76b5

Browse files
trvswgnrdoguearjunindialleytonstandardpointer
authored
sync with upstream (#109)
* Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * use our crabgo repo as the submodule * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * Renamed style-guide docs * accidentally removed cargo.md * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * Renamed style-guide docs * add fail function * ci: automatically update `upstream` branch from rustlang * submodules not needed for now * checkout upstream * rename step * branch -b is not nessecary * force push * update git submodules to use crablang repos * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * use our crabgo repo as the submodule * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * Renamed style-guide docs * accidentally removed cargo.md * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * Renamed style-guide docs * add fail function * ci: automatically update `upstream` branch from rustlang * submodules not needed for now * checkout upstream * rename step * branch -b is not nessecary * force push * update git submodules to use crablang repos * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * use our crabgo repo as the submodule * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * replace readme with crablang * start the process of clablang -> crab * Update README.md * update references from crablang/crablang to crablang/crab * update references from crablangc to crabc * update references from cargo to crabgo * update readme with community link * Changed old link and content inside "Getting Help" Section https://www.crablang.org/community seems to have been changed to https://community.crablang.org pointing to the discord server. * add install script to readme * add script to sync from upstream * update script with affected files from master * rename * rename * add this script to checked out files from master * add remote if it doesn't exist * check if the "current" branch exists locally * add force push * fix: rename non-code references in ftl locales we specifically rename instances of r**tc, c**go, r**tdoc, and r**tup I was intensionally conservative with the renaming, to not break things * fix: normalize test stderr * update to use rebase * update script to use rebase * sync with remote origin master instead of local master, which may be out of date adds origin with crab master if it doesnt exist remove extraneous check for current branch * add fail function * ci: automatically update `upstream` branch from rustlang * submodules not needed for now * checkout upstream * rename step * branch -b is not nessecary * force push * update git submodules to use crablang repos --------- Co-authored-by: Dogue <[email protected]> Co-authored-by: Arjun S <[email protected]> Co-authored-by: Lleyton Gray <[email protected]> Co-authored-by: standard-robot <[email protected]> Co-authored-by: Jonathan Dickinson <[email protected]>
1 parent 5a2ae38 commit 12c76b5

File tree

1,347 files changed

+15872
-7797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,347 files changed

+15872
-7797
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ contact_links:
66
- name: Feature Request
77
url: https://internals.rust-lang.org/
88
about: Please discuss language feature requests on the internals forum.
9+
- name: Clippy Bug
10+
url: https://github.com/rust-lang/rust-clippy/issues/new/choose
11+
about: Please report Clippy bugs such as false positives in the Clippy repo.

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ permissions:
3030
defaults:
3131
run:
3232
shell: bash
33+
concurrency:
34+
group: "${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
35+
cancel-in-progress: true
3336
jobs:
3437
pr:
35-
permissions:
36-
actions: write
3738
name: "PR - ${{ matrix.name }}"
3839
env:
3940
CI_JOB_NAME: "${{ matrix.name }}"
@@ -84,11 +85,6 @@ jobs:
8485
- name: ensure the channel matches the target branch
8586
run: src/ci/scripts/verify-channel.sh
8687
if: success() && !env.SKIP_JOB
87-
- name: configure GitHub Actions to kill the build when outdated
88-
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
89-
with:
90-
github_token: "${{ secrets.github_token }}"
91-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
9288
- name: collect CPU statistics
9389
run: src/ci/scripts/collect-cpu-stats.sh
9490
if: success() && !env.SKIP_JOB
@@ -162,8 +158,6 @@ jobs:
162158
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
163159
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
164160
auto:
165-
permissions:
166-
actions: write
167161
name: "auto - ${{ matrix.name }}"
168162
env:
169163
CI_JOB_NAME: "${{ matrix.name }}"
@@ -496,11 +490,6 @@ jobs:
496490
- name: ensure the channel matches the target branch
497491
run: src/ci/scripts/verify-channel.sh
498492
if: success() && !env.SKIP_JOB
499-
- name: configure GitHub Actions to kill the build when outdated
500-
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
501-
with:
502-
github_token: "${{ secrets.github_token }}"
503-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
504493
- name: collect CPU statistics
505494
run: src/ci/scripts/collect-cpu-stats.sh
506495
if: success() && !env.SKIP_JOB
@@ -574,8 +563,6 @@ jobs:
574563
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
575564
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
576565
try:
577-
permissions:
578-
actions: write
579566
name: "try - ${{ matrix.name }}"
580567
env:
581568
DIST_TRY_BUILD: 1
@@ -623,11 +610,6 @@ jobs:
623610
- name: ensure the channel matches the target branch
624611
run: src/ci/scripts/verify-channel.sh
625612
if: success() && !env.SKIP_JOB
626-
- name: configure GitHub Actions to kill the build when outdated
627-
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
628-
with:
629-
github_token: "${{ secrets.github_token }}"
630-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
631613
- name: collect CPU statistics
632614
run: src/ci/scripts/collect-cpu-stats.sh
633615
if: success() && !env.SKIP_JOB

.github/workflows/dependencies.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525

2626
jobs:
2727
not-waiting-on-bors:
28+
if: github.repository_owner == 'rust-lang'
2829
name: skip if S-waiting-on-bors
2930
runs-on: ubuntu-latest
3031
steps:
@@ -43,6 +44,7 @@ jobs:
4344
fi
4445
4546
update:
47+
if: github.repository_owner == 'rust-lang'
4648
name: update dependencies
4749
needs: not-waiting-on-bors
4850
runs-on: ubuntu-latest
@@ -76,6 +78,7 @@ jobs:
7678
retention-days: 1
7779

7880
pr:
81+
if: github.repository_owner == 'rust-lang'
7982
name: amend PR
8083
needs: update
8184
runs-on: ubuntu-latest

Cargo.lock

Lines changed: 17 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ dependencies = [
363363
"cargo_metadata",
364364
"directories",
365365
"rustc-build-sysroot",
366-
"rustc-workspace-hack",
367366
"rustc_tools_util",
368367
"rustc_version",
369368
"serde",
@@ -480,31 +479,14 @@ dependencies = [
480479
"winapi",
481480
]
482481

483-
[[package]]
484-
name = "clap"
485-
version = "3.2.20"
486-
source = "registry+https://github.com/rust-lang/crates.io-index"
487-
checksum = "23b71c3ce99b7611011217b366d923f1d0a7e07a92bb2dbf1e84508c673ca3bd"
488-
dependencies = [
489-
"atty",
490-
"bitflags",
491-
"clap_derive 3.2.18",
492-
"clap_lex 0.2.2",
493-
"indexmap",
494-
"once_cell",
495-
"strsim",
496-
"termcolor",
497-
"textwrap",
498-
]
499-
500482
[[package]]
501483
name = "clap"
502484
version = "4.2.1"
503485
source = "registry+https://github.com/rust-lang/crates.io-index"
504486
checksum = "046ae530c528f252094e4a77886ee1374437744b2bff1497aa898bbddbbb29b3"
505487
dependencies = [
506488
"clap_builder",
507-
"clap_derive 4.2.0",
489+
"clap_derive",
508490
"once_cell",
509491
]
510492

@@ -517,7 +499,7 @@ dependencies = [
517499
"anstream",
518500
"anstyle",
519501
"bitflags",
520-
"clap_lex 0.4.1",
502+
"clap_lex",
521503
"once_cell",
522504
"strsim",
523505
"terminal_size",
@@ -529,20 +511,7 @@ version = "4.0.7"
529511
source = "registry+https://github.com/rust-lang/crates.io-index"
530512
checksum = "10861370d2ba66b0f5989f83ebf35db6421713fd92351790e7fdd6c36774c56b"
531513
dependencies = [
532-
"clap 4.2.1",
533-
]
534-
535-
[[package]]
536-
name = "clap_derive"
537-
version = "3.2.18"
538-
source = "registry+https://github.com/rust-lang/crates.io-index"
539-
checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65"
540-
dependencies = [
541-
"heck",
542-
"proc-macro-error",
543-
"proc-macro2",
544-
"quote",
545-
"syn 1.0.102",
514+
"clap",
546515
]
547516

548517
[[package]]
@@ -557,15 +526,6 @@ dependencies = [
557526
"syn 2.0.8",
558527
]
559528

560-
[[package]]
561-
name = "clap_lex"
562-
version = "0.2.2"
563-
source = "registry+https://github.com/rust-lang/crates.io-index"
564-
checksum = "5538cd660450ebeb4234cfecf8f2284b844ffc4c50531e66d584ad5b91293613"
565-
dependencies = [
566-
"os_str_bytes",
567-
]
568-
569529
[[package]]
570530
name = "clap_lex"
571531
version = "0.4.1"
@@ -576,7 +536,7 @@ checksum = "8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1"
576536
name = "clippy"
577537
version = "0.1.72"
578538
dependencies = [
579-
"clap 4.2.1",
539+
"clap",
580540
"clippy_lints",
581541
"clippy_utils",
582542
"compiletest_rs",
@@ -605,7 +565,7 @@ name = "clippy_dev"
605565
version = "0.0.1"
606566
dependencies = [
607567
"aho-corasick",
608-
"clap 4.2.1",
568+
"clap",
609569
"indoc",
610570
"itertools",
611571
"opener",
@@ -697,9 +657,9 @@ dependencies = [
697657

698658
[[package]]
699659
name = "compiler_builtins"
700-
version = "0.1.92"
660+
version = "0.1.93"
701661
source = "registry+https://github.com/rust-lang/crates.io-index"
702-
checksum = "64518f1ae689f74db058bbfb3238dfe6eb53f59f4ae712f1ff4348628522e190"
662+
checksum = "76630810d973ecea3dbf611e1b7aecfb1012751ef1ff8de3998f89014a166781"
703663
dependencies = [
704664
"cc",
705665
"rustc-std-workspace-core",
@@ -1749,7 +1709,7 @@ name = "installer"
17491709
version = "0.0.0"
17501710
dependencies = [
17511711
"anyhow",
1752-
"clap 3.2.20",
1712+
"clap",
17531713
"flate2",
17541714
"num_cpus",
17551715
"rayon",
@@ -1869,7 +1829,7 @@ name = "jsondoclint"
18691829
version = "0.1.0"
18701830
dependencies = [
18711831
"anyhow",
1872-
"clap 4.2.1",
1832+
"clap",
18731833
"fs-err",
18741834
"rustc-hash",
18751835
"rustdoc-json-types",
@@ -2086,7 +2046,7 @@ dependencies = [
20862046
"ammonia",
20872047
"anyhow",
20882048
"chrono",
2089-
"clap 4.2.1",
2049+
"clap",
20902050
"clap_complete",
20912051
"elasticlunr-rs",
20922052
"env_logger 0.10.0",
@@ -2230,7 +2190,6 @@ dependencies = [
22302190
"measureme",
22312191
"rand",
22322192
"regex",
2233-
"rustc-workspace-hack",
22342193
"rustc_version",
22352194
"smallvec",
22362195
"ui_test",
@@ -2370,12 +2329,6 @@ dependencies = [
23702329
"vcpkg",
23712330
]
23722331

2373-
[[package]]
2374-
name = "os_str_bytes"
2375-
version = "6.0.0"
2376-
source = "registry+https://github.com/rust-lang/crates.io-index"
2377-
checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
2378-
23792332
[[package]]
23802333
name = "owo-colors"
23812334
version = "3.5.0"
@@ -2617,30 +2570,6 @@ version = "0.1.1"
26172570
source = "registry+https://github.com/rust-lang/crates.io-index"
26182571
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
26192572

2620-
[[package]]
2621-
name = "proc-macro-error"
2622-
version = "1.0.4"
2623-
source = "registry+https://github.com/rust-lang/crates.io-index"
2624-
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
2625-
dependencies = [
2626-
"proc-macro-error-attr",
2627-
"proc-macro2",
2628-
"quote",
2629-
"syn 1.0.102",
2630-
"version_check",
2631-
]
2632-
2633-
[[package]]
2634-
name = "proc-macro-error-attr"
2635-
version = "1.0.4"
2636-
source = "registry+https://github.com/rust-lang/crates.io-index"
2637-
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
2638-
dependencies = [
2639-
"proc-macro2",
2640-
"quote",
2641-
"version_check",
2642-
]
2643-
26442573
[[package]]
26452574
name = "proc-macro-hack"
26462575
version = "0.5.19"
@@ -2649,9 +2578,9 @@ checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
26492578

26502579
[[package]]
26512580
name = "proc-macro2"
2652-
version = "1.0.56"
2581+
version = "1.0.60"
26532582
source = "registry+https://github.com/rust-lang/crates.io-index"
2654-
checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435"
2583+
checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406"
26552584
dependencies = [
26562585
"unicode-ident",
26572586
]
@@ -2897,7 +2826,7 @@ dependencies = [
28972826
name = "rustbook"
28982827
version = "0.1.0"
28992828
dependencies = [
2900-
"clap 4.2.1",
2829+
"clap",
29012830
"env_logger 0.10.0",
29022831
"mdbook",
29032832
]
@@ -2989,12 +2918,6 @@ dependencies = [
29892918
"std",
29902919
]
29912920

2992-
[[package]]
2993-
name = "rustc-workspace-hack"
2994-
version = "1.0.0"
2995-
source = "registry+https://github.com/rust-lang/crates.io-index"
2996-
checksum = "fc71d2faa173b74b232dedc235e3ee1696581bb132fc116fa3626d6151a1a8fb"
2997-
29982921
[[package]]
29992922
name = "rustc_abi"
30002923
version = "0.0.0"
@@ -4146,6 +4069,7 @@ name = "rustc_target"
41464069
version = "0.0.0"
41474070
dependencies = [
41484071
"bitflags",
4072+
"object 0.31.1",
41494073
"rustc_abi",
41504074
"rustc_data_structures",
41514075
"rustc_feature",
@@ -4346,7 +4270,7 @@ dependencies = [
43464270
"anyhow",
43474271
"bytecount",
43484272
"cargo_metadata",
4349-
"clap 4.2.1",
4273+
"clap",
43504274
"diff",
43514275
"dirs",
43524276
"env_logger 0.10.0",
@@ -4874,12 +4798,6 @@ dependencies = [
48744798
"term",
48754799
]
48764800

4877-
[[package]]
4878-
name = "textwrap"
4879-
version = "0.15.0"
4880-
source = "registry+https://github.com/rust-lang/crates.io-index"
4881-
checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
4882-
48834801
[[package]]
48844802
name = "thin-vec"
48854803
version = "0.2.12"
@@ -5171,9 +5089,9 @@ checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81"
51715089

51725090
[[package]]
51735091
name = "ui_test"
5174-
version = "0.10.0"
5092+
version = "0.11.6"
51755093
source = "registry+https://github.com/rust-lang/crates.io-index"
5176-
checksum = "191a442639ea102fa62671026047e51d574bfda44b7fdf32151d7314624c1cd2"
5094+
checksum = "24a2e70adc9d18b9b4dd80ea57aeec447103c6fbb354a07c080adad451c645e1"
51775095
dependencies = [
51785096
"bstr",
51795097
"cargo-platform",

compiler/rustc_ast/src/ast.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ impl Expr {
12951295
ExprKind::Yield(..) => ExprPrecedence::Yield,
12961296
ExprKind::Yeet(..) => ExprPrecedence::Yeet,
12971297
ExprKind::FormatArgs(..) => ExprPrecedence::FormatArgs,
1298+
ExprKind::Become(..) => ExprPrecedence::Become,
12981299
ExprKind::Err => ExprPrecedence::Err,
12991300
}
13001301
}
@@ -1515,6 +1516,11 @@ pub enum ExprKind {
15151516
/// with an optional value to be returned.
15161517
Yeet(Option<P<Expr>>),
15171518

1519+
/// A tail call return, with the value to be returned.
1520+
///
1521+
/// While `.0` must be a function call, we check this later, after parsing.
1522+
Become(P<Expr>),
1523+
15181524
/// Bytes included via `include_bytes!`
15191525
/// Added for optimization purposes to avoid the need to escape
15201526
/// large binary blobs - should always behave like [`ExprKind::Lit`]

compiler/rustc_ast/src/mut_visit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,7 @@ pub fn noop_visit_expr<T: MutVisitor>(
14571457
ExprKind::Yeet(expr) => {
14581458
visit_opt(expr, |expr| vis.visit_expr(expr));
14591459
}
1460+
ExprKind::Become(expr) => vis.visit_expr(expr),
14601461
ExprKind::InlineAsm(asm) => vis.visit_inline_asm(asm),
14611462
ExprKind::FormatArgs(fmt) => vis.visit_format_args(fmt),
14621463
ExprKind::OffsetOf(container, fields) => {

0 commit comments

Comments
 (0)