git: be2a720ce7f6 - main - lang/rust: Update to 1.67.1

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Mon, 13 Feb 2023 09:38:24 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=be2a720ce7f632d0c14e44c5aed12dc25298025c

commit be2a720ce7f632d0c14e44c5aed12dc25298025c
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-02-05 10:21:27 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-02-13 09:38:08 +0000

    lang/rust: Update to 1.67.1
    
    Announce:       https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html
                    https://blog.rust-lang.org/2023/02/09/Rust-1.67.1.html
    ChangeLog:      https://github.com/rust-lang/rust/releases/tag/1.67.0
                    https://github.com/rust-lang/rust/releases/tag/1.67.1
    
    PR:             269336
    Reviewed by:    pkubaj
    Tested by:      mikael,pkubaj
---
 Mk/Uses/cargo.mk                                   |   2 +-
 Mk/bsd.gecko.mk                                    |   2 +-
 lang/rust-bootstrap/Makefile                       |   2 +-
 lang/rust-bootstrap/distinfo                       |   6 +-
 lang/rust/Makefile                                 |  15 ++-
 lang/rust/distinfo                                 | 102 ++++++++++-----------
 .../rust/files/patch-compiler_rustc__llvm_build.rs |  30 ------
 7 files changed, 63 insertions(+), 96 deletions(-)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index d3d7556c7630..d572c0bf657f 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -97,7 +97,7 @@ WRKSRC_crate_${_crate}=	${WRKDIR}/${_wrksrc}
 
 CARGO_BUILDDEP?=	yes
 .  if ${CARGO_BUILDDEP:tl} == "yes"
-BUILD_DEPENDS+=	${RUST_DEFAULT}>=1.66.0:lang/${RUST_DEFAULT}
+BUILD_DEPENDS+=	${RUST_DEFAULT}>=1.67.1:lang/${RUST_DEFAULT}
 .  elif ${CARGO_BUILDDEP:tl} == "any-version"
 BUILD_DEPENDS+=	${RUST_DEFAULT}>=0:lang/${RUST_DEFAULT}
 .  endif
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk
index cf2f9eb004e5..56192703f497 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -76,7 +76,7 @@ BUNDLE_LIBS=	yes
 
 BUILD_DEPENDS+=	llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \
 				rust-cbindgen>=0.24.3:devel/rust-cbindgen \
-				${RUST_DEFAULT}>=1.66.0:lang/${RUST_DEFAULT} \
+				${RUST_DEFAULT}>=1.67.1:lang/${RUST_DEFAULT} \
 				node:www/node
 LIB_DEPENDS+=	libdrm.so:graphics/libdrm
 RUN_DEPENDS+=	${LOCALBASE}/lib/libpci.so:devel/libpci
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile
index 64889afe8625..e0007184a798 100644
--- a/lang/rust-bootstrap/Makefile
+++ b/lang/rust-bootstrap/Makefile
@@ -2,7 +2,7 @@
 # to upload them to ~/public_distfiles on freefall in preparation
 # for the next lang/rust update.
 PORTNAME=	rust
-PORTVERSION=	1.66.0
+PORTVERSION=	1.67.1
 CATEGORIES=	lang
 MASTER_SITES=	https://static.rust-lang.org/dist/
 PKGNAMEPREFIX=	${FLAVOR:S/_/-/g}-
diff --git a/lang/rust-bootstrap/distinfo b/lang/rust-bootstrap/distinfo
index 68db107d1863..6f524d984aed 100644
--- a/lang/rust-bootstrap/distinfo
+++ b/lang/rust-bootstrap/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1671211425
-SHA256 (rust/rustc-1.66.0-src.tar.xz) = 0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c
-SIZE (rust/rustc-1.66.0-src.tar.xz) = 141582844
+TIMESTAMP = 1676026418
+SHA256 (rust/rustc-1.67.1-src.tar.xz) = 77e0615011f887d9533d5374bf9c15c590c3caf32bbb035b392d1c2ae502a682
+SIZE (rust/rustc-1.67.1-src.tar.xz) = 142758844
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index d2e9273fbf6f..63fd5487b9da 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rust
-PORTVERSION?=	1.66.1
+PORTVERSION?=	1.67.1
 PORTREVISION?=	0
 CATEGORIES=	lang
 MASTER_SITES=	https://static.rust-lang.org/dist/:src \
@@ -8,9 +8,9 @@ MASTER_SITES=	https://static.rust-lang.org/dist/:src \
 		https://static.rust-lang.org/dist/:bootstrap
 DISTNAME?=	${PORTNAME}c-${PORTVERSION}-src
 DISTFILES?=	${NIGHTLY_DATE:D${NIGHTLY_DATE}/}${DISTNAME}${EXTRACT_SUFX}:src \
-		${_RUSTC_BOOTSTRAP}${BOOTSTRAPS_SUFFIX}${EXTRACT_SUFX}:bootstrap \
-		${_RUST_STD_BOOTSTRAP}${BOOTSTRAPS_SUFFIX}${EXTRACT_SUFX}:bootstrap \
-		${_CARGO_BOOTSTRAP}${BOOTSTRAPS_SUFFIX}${EXTRACT_SUFX}:bootstrap
+		${_RUSTC_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap \
+		${_RUST_STD_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap \
+		${_CARGO_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap
 DIST_SUBDIR?=	rust
 
 MAINTAINER=	rust@FreeBSD.org
@@ -69,11 +69,8 @@ WASM_VARS=		_COMPONENTS+="rust-analysis-${_PACKAGE_VERS}-wasm32-unknown-unknown
 WASM_VARS_OFF=		_RUST_BUILD_WASM=false
 
 # See WRKSRC/src/stage0.json for the date and version values
-BOOTSTRAPS_DATE?=		2022-11-03
-RUST_BOOTSTRAP_VERSION?=	1.65.0
-
-BOOTSTRAPS_SUFFIX?=		${BOOTSTRAPS_SUFFIX_${ARCH}}
-BOOTSTRAPS_SUFFIX_powerpc64?=	-${PPC_ABI:tl}
+BOOTSTRAPS_DATE?=		2023-01-10
+RUST_BOOTSTRAP_VERSION?=	1.66.0
 
 CARGO_VENDOR_DIR?=		${WRKSRC}/vendor
 
diff --git a/lang/rust/distinfo b/lang/rust/distinfo
index f5c48da1ae4b..a99927637601 100644
--- a/lang/rust/distinfo
+++ b/lang/rust/distinfo
@@ -1,51 +1,51 @@
-TIMESTAMP = 1674734560
-SHA256 (rust/rustc-1.66.1-src.tar.xz) = 07ac4e6c93e0d8ecfaf3b86c4c78bbbde3f5be675f0334e7fb343cb4a0b81ebe
-SIZE (rust/rustc-1.66.1-src.tar.xz) = 141692940
-SHA256 (rust/2022-11-03/rustc-1.65.0-aarch64-unknown-freebsd.tar.xz) = fb7c58730dde8e40f831116090bda88b7708f78bbb64cafa7d7f9b0b493ef8f4
-SIZE (rust/2022-11-03/rustc-1.65.0-aarch64-unknown-freebsd.tar.xz) = 40676092
-SHA256 (rust/2022-11-03/rust-std-1.65.0-aarch64-unknown-freebsd.tar.xz) = 695a5ac1b0dc4e008685b19324b70da757435288455432cc09ebe25cba16e161
-SIZE (rust/2022-11-03/rust-std-1.65.0-aarch64-unknown-freebsd.tar.xz) = 25828140
-SHA256 (rust/2022-11-03/cargo-1.65.0-aarch64-unknown-freebsd.tar.xz) = a6215af64aae33973e7113f5c23a6d231385a1a300f4b6dcbc8de51aa3502832
-SIZE (rust/2022-11-03/cargo-1.65.0-aarch64-unknown-freebsd.tar.xz) = 4962000
-SHA256 (rust/2022-11-03/rustc-1.65.0-x86_64-unknown-freebsd.tar.xz) = 122bed217dc388ae5bc353e2279ec1f72cd575da19db737102b53fc041608987
-SIZE (rust/2022-11-03/rustc-1.65.0-x86_64-unknown-freebsd.tar.xz) = 38789796
-SHA256 (rust/2022-11-03/rust-std-1.65.0-x86_64-unknown-freebsd.tar.xz) = 9b8af845771ffc9a132e8f55d58e1c5ddbba4ee766cd3a1c2a8de63513215b53
-SIZE (rust/2022-11-03/rust-std-1.65.0-x86_64-unknown-freebsd.tar.xz) = 26461768
-SHA256 (rust/2022-11-03/cargo-1.65.0-x86_64-unknown-freebsd.tar.xz) = cbfd8ea9a34ae3b6a13a4c2637d8bae4dad87450cf4aaaacafbf99ae0c8c08d6
-SIZE (rust/2022-11-03/cargo-1.65.0-x86_64-unknown-freebsd.tar.xz) = 5618512
-SHA256 (rust/2022-11-03/rustc-1.65.0-armv7-unknown-freebsd.tar.xz) = 3e287c70d8c72632b7a615534f0aea1a793ce32c837ad00e01bcb563c0ef1a7d
-SIZE (rust/2022-11-03/rustc-1.65.0-armv7-unknown-freebsd.tar.xz) = 40819484
-SHA256 (rust/2022-11-03/rust-std-1.65.0-armv7-unknown-freebsd.tar.xz) = 762687ac0aa3aaa89ff3390221046d22b16154ba749329c3b3dd55e548649c01
-SIZE (rust/2022-11-03/rust-std-1.65.0-armv7-unknown-freebsd.tar.xz) = 24799480
-SHA256 (rust/2022-11-03/cargo-1.65.0-armv7-unknown-freebsd.tar.xz) = a2fc2039988829731df5f3e2a1104e86d90df7022e61a8687c66e0731d1e988c
-SIZE (rust/2022-11-03/cargo-1.65.0-armv7-unknown-freebsd.tar.xz) = 4818596
-SHA256 (rust/2022-11-03/rustc-1.65.0-i686-unknown-freebsd.tar.xz) = 45bb92166ef5a016480ac60559b5d5be475ba1cf79653ff50211d3cc002fbce0
-SIZE (rust/2022-11-03/rustc-1.65.0-i686-unknown-freebsd.tar.xz) = 45655048
-SHA256 (rust/2022-11-03/rust-std-1.65.0-i686-unknown-freebsd.tar.xz) = 6ef0ec8e2874f5a1a47c64e78329f500ccce504d3a0ef93c9dbc64ff5d0781ee
-SIZE (rust/2022-11-03/rust-std-1.65.0-i686-unknown-freebsd.tar.xz) = 26283920
-SHA256 (rust/2022-11-03/cargo-1.65.0-i686-unknown-freebsd.tar.xz) = 2d7934407d67d86e2f382659e3d94eb80932949e3d9cbed832bac36ba3b2af16
-SIZE (rust/2022-11-03/cargo-1.65.0-i686-unknown-freebsd.tar.xz) = 5798924
-SHA256 (rust/2022-11-03/rustc-1.65.0-powerpc-unknown-freebsd.tar.xz) = 22b5d02791697e99b1f96859c941fe9d4af07dbef5c8b1023b040203ac5a287b
-SIZE (rust/2022-11-03/rustc-1.65.0-powerpc-unknown-freebsd.tar.xz) = 44217144
-SHA256 (rust/2022-11-03/rust-std-1.65.0-powerpc-unknown-freebsd.tar.xz) = fc04bbe3f0880756811e234b1f1178f9d4544082cc99c8af53836b7bc0da2339
-SIZE (rust/2022-11-03/rust-std-1.65.0-powerpc-unknown-freebsd.tar.xz) = 23597080
-SHA256 (rust/2022-11-03/cargo-1.65.0-powerpc-unknown-freebsd.tar.xz) = e1cae5f170373c45fed8a55a35312e7dd857e872332b33d9f737ad649d522ed4
-SIZE (rust/2022-11-03/cargo-1.65.0-powerpc-unknown-freebsd.tar.xz) = 5343924
-SHA256 (rust/2022-11-03/rustc-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 696ac81b6fae8ab2777815e6696a840b319c3bc3ef716880e5da9f57dc66978c
-SIZE (rust/2022-11-03/rustc-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 41458412
-SHA256 (rust/2022-11-03/rust-std-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = c01867b132e85196f9bd2ffde5fc7711b61c14b94f35abd1fdc57e252ad0dc3a
-SIZE (rust/2022-11-03/rust-std-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 23729728
-SHA256 (rust/2022-11-03/cargo-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = d15b86ab084159fa489e765c614c8e2fbd32983eb4cc74e2bbd1019ab4944cb0
-SIZE (rust/2022-11-03/cargo-1.65.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 5106080
-SHA256 (rust/2022-11-03/rustc-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = dab3672acbef082bc0a8f4e2a480563fa5df4c1456d3ecd5c279609d7a76114d
-SIZE (rust/2022-11-03/rustc-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = 43128132
-SHA256 (rust/2022-11-03/rust-std-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = c95301ad42e0cc2732fefbb15a19c159c2057fd49fce65e14cbc1bb9e7031b9c
-SIZE (rust/2022-11-03/rust-std-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = 24011224
-SHA256 (rust/2022-11-03/cargo-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = e87c3cd46495c9077b61a49e2d8e4733051f85a0ce6926a7db4b9ddd7ad871ef
-SIZE (rust/2022-11-03/cargo-1.65.0-powerpc64le-unknown-freebsd.tar.xz) = 5414340
-SHA256 (rust/2022-11-03/rustc-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = 58f1285941e01fba59ed88c025cc1a52d2b5c481480112c537f8dddc2d6fdc0d
-SIZE (rust/2022-11-03/rustc-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = 158130868
-SHA256 (rust/2022-11-03/rust-std-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = b6bd919b2ea4d5e1e09fee9813f23857bb472d00cdc23d93052032c5b809c592
-SIZE (rust/2022-11-03/rust-std-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = 31273336
-SHA256 (rust/2022-11-03/cargo-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = 48a167674d3f7381d8187ca927732255fcd104f258fdbb8ae23470f5398aedb1
-SIZE (rust/2022-11-03/cargo-1.65.0-riscv64gc-unknown-freebsd.tar.xz) = 27593540
+TIMESTAMP = 1676026025
+SHA256 (rust/rustc-1.67.1-src.tar.xz) = 77e0615011f887d9533d5374bf9c15c590c3caf32bbb035b392d1c2ae502a682
+SIZE (rust/rustc-1.67.1-src.tar.xz) = 142758844
+SHA256 (rust/2023-01-10/rustc-1.66.0-aarch64-unknown-freebsd.tar.xz) = 955269e75bb9cabf84ef2a6354a80e3852b7adff304ba816571d29ea8cbf5e27
+SIZE (rust/2023-01-10/rustc-1.66.0-aarch64-unknown-freebsd.tar.xz) = 40416556
+SHA256 (rust/2023-01-10/rust-std-1.66.0-aarch64-unknown-freebsd.tar.xz) = a7d418a5f6e7cfd6feb38ae3f3d9aceb93328baf39db84736702a219fcc1b3f4
+SIZE (rust/2023-01-10/rust-std-1.66.0-aarch64-unknown-freebsd.tar.xz) = 25649396
+SHA256 (rust/2023-01-10/cargo-1.66.0-aarch64-unknown-freebsd.tar.xz) = bd2662ae0379d50325a2cbf93e39ba4f0d6c7b842871a8ae9278b3c09d37283b
+SIZE (rust/2023-01-10/cargo-1.66.0-aarch64-unknown-freebsd.tar.xz) = 4983796
+SHA256 (rust/2023-01-10/rustc-1.66.0-x86_64-unknown-freebsd.tar.xz) = 9b75836e4de76a4f805247b7fd5733c4757818793f25b542800cf3e54dd79ae5
+SIZE (rust/2023-01-10/rustc-1.66.0-x86_64-unknown-freebsd.tar.xz) = 39319720
+SHA256 (rust/2023-01-10/rust-std-1.66.0-x86_64-unknown-freebsd.tar.xz) = 783e6800c82eb389c60bc6fac399a28904731355524d89a0a414b68854622114
+SIZE (rust/2023-01-10/rust-std-1.66.0-x86_64-unknown-freebsd.tar.xz) = 26667832
+SHA256 (rust/2023-01-10/cargo-1.66.0-x86_64-unknown-freebsd.tar.xz) = 64af50ec96dfb5d94d07ab8a5ac3781451207ad21fdca6938936d6c0d7a99aa1
+SIZE (rust/2023-01-10/cargo-1.66.0-x86_64-unknown-freebsd.tar.xz) = 5638404
+SHA256 (rust/2023-01-10/rustc-1.66.0-armv7-unknown-freebsd.tar.xz) = 95dd50ae9fa76561910821ad745df765c4e7db266e4d4c1085cd210eb39e9ca8
+SIZE (rust/2023-01-10/rustc-1.66.0-armv7-unknown-freebsd.tar.xz) = 40519476
+SHA256 (rust/2023-01-10/rust-std-1.66.0-armv7-unknown-freebsd.tar.xz) = f6a4c2f3117a2323b57c324d8631f7ff0fe2f82dfe95615c6b1e6496ce664a6f
+SIZE (rust/2023-01-10/rust-std-1.66.0-armv7-unknown-freebsd.tar.xz) = 24562196
+SHA256 (rust/2023-01-10/cargo-1.66.0-armv7-unknown-freebsd.tar.xz) = 29156368bca9a39749b9939233468b28175ada07f14a4df5a64c1a443c7c82c0
+SIZE (rust/2023-01-10/cargo-1.66.0-armv7-unknown-freebsd.tar.xz) = 4843780
+SHA256 (rust/2023-01-10/rustc-1.66.0-i686-unknown-freebsd.tar.xz) = 5bffbe2bc054b38166244ecf42e7471f953bbda8fe34cfcca174c3965a9d8ce8
+SIZE (rust/2023-01-10/rustc-1.66.0-i686-unknown-freebsd.tar.xz) = 45305168
+SHA256 (rust/2023-01-10/rust-std-1.66.0-i686-unknown-freebsd.tar.xz) = 09a00e5ab0bb8c7df43f23f4bec65652fc35400e6d11ec1c3530a9c11a143b26
+SIZE (rust/2023-01-10/rust-std-1.66.0-i686-unknown-freebsd.tar.xz) = 25903968
+SHA256 (rust/2023-01-10/cargo-1.66.0-i686-unknown-freebsd.tar.xz) = b1ea5e7995b82745f28b4a6e711b8b9d39ba00d31861585b0724c216d6f96427
+SIZE (rust/2023-01-10/cargo-1.66.0-i686-unknown-freebsd.tar.xz) = 5830848
+SHA256 (rust/2023-01-10/rustc-1.66.0-powerpc-unknown-freebsd.tar.xz) = 35a511079f586840abb9c7d47eb6b7b3e6f6bf69be69355b8f45b20fce664761
+SIZE (rust/2023-01-10/rustc-1.66.0-powerpc-unknown-freebsd.tar.xz) = 43935288
+SHA256 (rust/2023-01-10/rust-std-1.66.0-powerpc-unknown-freebsd.tar.xz) = 794aa22f13d5875b64464259bf021f4fc62c1be4564f6789b895e28b5513e941
+SIZE (rust/2023-01-10/rust-std-1.66.0-powerpc-unknown-freebsd.tar.xz) = 23420068
+SHA256 (rust/2023-01-10/cargo-1.66.0-powerpc-unknown-freebsd.tar.xz) = 84bd8968f86760d3c2880570b0a10f69be5f0ce54fcd85d8ad3963b035a4adae
+SIZE (rust/2023-01-10/cargo-1.66.0-powerpc-unknown-freebsd.tar.xz) = 5346628
+SHA256 (rust/2023-01-10/rustc-1.66.0-powerpc64-unknown-freebsd.tar.xz) = e3d1f9e6deb9ade8d696f6b1b091e93885cb5c344f328585f747dbe653bb7caf
+SIZE (rust/2023-01-10/rustc-1.66.0-powerpc64-unknown-freebsd.tar.xz) = 41382148
+SHA256 (rust/2023-01-10/rust-std-1.66.0-powerpc64-unknown-freebsd.tar.xz) = f0c5db8dbee3bbaed7625cbff3d81aade60953afd1e0a27331ec5fd143c77b36
+SIZE (rust/2023-01-10/rust-std-1.66.0-powerpc64-unknown-freebsd.tar.xz) = 23597184
+SHA256 (rust/2023-01-10/cargo-1.66.0-powerpc64-unknown-freebsd.tar.xz) = 6e872b261414e6cf6d50a4a3e30e7ad7ea3d4c549cf8388903976505f5cb4351
+SIZE (rust/2023-01-10/cargo-1.66.0-powerpc64-unknown-freebsd.tar.xz) = 5122584
+SHA256 (rust/2023-01-10/rustc-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = e04cacc85c84ccd23a661610b587ba8cb7f8f5174417303ca383c3ec8e251337
+SIZE (rust/2023-01-10/rustc-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = 43688852
+SHA256 (rust/2023-01-10/rust-std-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = 05cd319e9b092e7354f61e81524dc57beed882bd59652bd9991b926c05f0f75a
+SIZE (rust/2023-01-10/rust-std-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = 24213132
+SHA256 (rust/2023-01-10/cargo-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = ba69d2c6f2780dd579aa6f7abb31f6ec51576cf4aed121ebaeaf25e77ab3b469
+SIZE (rust/2023-01-10/cargo-1.66.0-powerpc64le-unknown-freebsd.tar.xz) = 5424692
+SHA256 (rust/2023-01-10/rustc-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = 5ae7921bad8764d9dc9b825a84d0cb6611d9ed3ac0ee72b71e1fe48803654c6f
+SIZE (rust/2023-01-10/rustc-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = 53758328
+SHA256 (rust/2023-01-10/rust-std-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = c8bd9273b7646170e6b182e41c9454274ed3744396c6389854b8f5868dfcd7fc
+SIZE (rust/2023-01-10/rust-std-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = 23979704
+SHA256 (rust/2023-01-10/cargo-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = 5bbe18918305027237e519375b872dcbc04c742a8347be228eb894b88d509aa8
+SIZE (rust/2023-01-10/cargo-1.66.0-riscv64gc-unknown-freebsd.tar.xz) = 6680520
diff --git a/lang/rust/files/patch-compiler_rustc__llvm_build.rs b/lang/rust/files/patch-compiler_rustc__llvm_build.rs
deleted file mode 100644
index 8ed4577c223a..000000000000
--- a/lang/rust/files/patch-compiler_rustc__llvm_build.rs
+++ /dev/null
@@ -1,30 +0,0 @@
---- compiler/rustc_llvm/build.rs
-+++ compiler/rustc_llvm/build.rs
-@@ -237,18 +237,20 @@
- 
-     if !is_crossed {
-         cmd.arg("--system-libs");
--    } else if target.contains("windows-gnu") {
--        println!("cargo:rustc-link-lib=shell32");
--        println!("cargo:rustc-link-lib=uuid");
--    } else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
--        println!("cargo:rustc-link-lib=z");
--    } else if target.starts_with("arm")
--        || target.starts_with("mips-")
-+    }
-+
-+    if target.starts_with("mips")
-         || target.starts_with("mipsel-")
-         || target.starts_with("powerpc-")
-     {
-         // 32-bit targets need to link libatomic.
-         println!("cargo:rustc-link-lib=atomic");
-+        println!("cargo:rustc-link-lib=z");
-+    } else if target.contains("windows-gnu") {
-+        println!("cargo:rustc-link-lib=shell32");
-+        println!("cargo:rustc-link-lib=uuid");
-+    } else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
-+        println!("cargo:rustc-link-lib=z");
-     }
-     cmd.args(&components);
-