View | Details | Raw Unified | Return to bug 265915
Collapse All | Expand All

(-)b/Mk/Uses/cargo.mk (-1 / +1 lines)
Lines 97-103 WRKSRC_crate_${_crate}= ${WRKDIR}/${_wrksrc} Link Here
97
97
98
CARGO_BUILDDEP?=	yes
98
CARGO_BUILDDEP?=	yes
99
.  if ${CARGO_BUILDDEP:tl} == "yes"
99
.  if ${CARGO_BUILDDEP:tl} == "yes"
100
BUILD_DEPENDS+=	${RUST_DEFAULT}>=1.62.0:lang/${RUST_DEFAULT}
100
BUILD_DEPENDS+=	${RUST_DEFAULT}>=1.63.0:lang/${RUST_DEFAULT}
101
.  endif
101
.  endif
102
102
103
# Location of toolchain (default to lang/rust's toolchain)
103
# Location of toolchain (default to lang/rust's toolchain)
(-)b/Mk/bsd.gecko.mk (-1 / +1 lines)
Lines 79-85 BUNDLE_LIBS= yes Link Here
79
79
80
BUILD_DEPENDS+=	llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \
80
BUILD_DEPENDS+=	llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \
81
				rust-cbindgen>=0.24.3:devel/rust-cbindgen \
81
				rust-cbindgen>=0.24.3:devel/rust-cbindgen \
82
				${RUST_DEFAULT}>=1.62.0:lang/${RUST_DEFAULT} \
82
				${RUST_DEFAULT}>=1.63.0:lang/${RUST_DEFAULT} \
83
				node:www/node
83
				node:www/node
84
LIB_DEPENDS+=	libdrm.so:graphics/libdrm
84
LIB_DEPENDS+=	libdrm.so:graphics/libdrm
85
RUN_DEPENDS+=	${LOCALBASE}/lib/libpci.so:devel/libpci
85
RUN_DEPENDS+=	${LOCALBASE}/lib/libpci.so:devel/libpci
(-)b/lang/rust-bootstrap/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# to upload them to ~/public_distfiles on freefall in preparation
2
# to upload them to ~/public_distfiles on freefall in preparation
3
# for the next lang/rust update.
3
# for the next lang/rust update.
4
PORTNAME=	rust
4
PORTNAME=	rust
5
PORTVERSION=	1.62.0
5
PORTVERSION=	1.63.0
6
CATEGORIES=	lang
6
CATEGORIES=	lang
7
MASTER_SITES=	https://static.rust-lang.org/dist/
7
MASTER_SITES=	https://static.rust-lang.org/dist/
8
PKGNAMEPREFIX=	${FLAVOR:S/_/-/g}-
8
PKGNAMEPREFIX=	${FLAVOR:S/_/-/g}-
(-)b/lang/rust-bootstrap/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1656497768
1
TIMESTAMP = 1660646335
2
SHA256 (rust/rustc-1.62.0-src.tar.xz) = 6c00ef115c894c2645e60b5049a4f5dacf1dc0c993f3074f7ae4fdf4c755dd5e
2
SHA256 (rust/rustc-1.63.0-src.tar.xz) = 8f44af6dc44cc4146634a4dd5e4cc5470b3052a2337019b870c0e025e8987e0c
3
SIZE (rust/rustc-1.62.0-src.tar.xz) = 135644992
3
SIZE (rust/rustc-1.63.0-src.tar.xz) = 136597192
(-)b/lang/rust/Makefile (-3 / +3 lines)
Lines 1-5 Link Here
1
PORTNAME=	rust
1
PORTNAME=	rust
2
PORTVERSION?=	1.62.1
2
PORTVERSION?=	1.63.0
3
PORTREVISION?=	0
3
PORTREVISION?=	0
4
CATEGORIES=	lang
4
CATEGORIES=	lang
5
MASTER_SITES=	https://static.rust-lang.org/dist/:src \
5
MASTER_SITES=	https://static.rust-lang.org/dist/:src \
Lines 68-75 WASM_VARS= _COMPONENTS+="rust-analysis-${_PACKAGE_VERS}-wasm32-unknown-unknown Link Here
68
WASM_VARS_OFF=		_RUST_BUILD_WASM=false
68
WASM_VARS_OFF=		_RUST_BUILD_WASM=false
69
69
70
# See WRKSRC/src/stage0.json for the date and version values
70
# See WRKSRC/src/stage0.json for the date and version values
71
BOOTSTRAPS_DATE?=		2022-05-19
71
BOOTSTRAPS_DATE?=		2022-08-11
72
RUST_BOOTSTRAP_VERSION?=	1.61.0
72
RUST_BOOTSTRAP_VERSION?=	1.62.0
73
73
74
BOOTSTRAPS_SUFFIX?=		${BOOTSTRAPS_SUFFIX_${ARCH}}
74
BOOTSTRAPS_SUFFIX?=		${BOOTSTRAPS_SUFFIX_${ARCH}}
75
BOOTSTRAPS_SUFFIX_powerpc64?=	-${PPC_ABI:tl}
75
BOOTSTRAPS_SUFFIX_powerpc64?=	-${PPC_ABI:tl}
(-)b/lang/rust/distinfo (-63 / +63 lines)
Lines 1-63 Link Here
1
TIMESTAMP = 1658240928
1
TIMESTAMP = 1660637971
2
SHA256 (rust/rustc-1.62.1-src.tar.xz) = 02066a93c2f6596cc046a897d5716c86e3607c1cd0f54db9a867ae8c8265072e
2
SHA256 (rust/rustc-1.63.0-src.tar.xz) = 8f44af6dc44cc4146634a4dd5e4cc5470b3052a2337019b870c0e025e8987e0c
3
SIZE (rust/rustc-1.62.1-src.tar.xz) = 135644156
3
SIZE (rust/rustc-1.63.0-src.tar.xz) = 136597192
4
SHA256 (rust/2022-05-19/rustc-1.61.0-aarch64-unknown-freebsd.tar.xz) = 042eec2e8a6eff9bf754594e989f4d82b9a45bd86e32c8782146ccb55b1845b0
4
SHA256 (rust/2022-08-11/rustc-1.62.0-aarch64-unknown-freebsd.tar.xz) = cc389cc6054c2761b55329f996107d02453187149b3597cbebdc4c7a994e4b9f
5
SIZE (rust/2022-05-19/rustc-1.61.0-aarch64-unknown-freebsd.tar.xz) = 41988500
5
SIZE (rust/2022-08-11/rustc-1.62.0-aarch64-unknown-freebsd.tar.xz) = 43229728
6
SHA256 (rust/2022-05-19/rust-std-1.61.0-aarch64-unknown-freebsd.tar.xz) = 518aa33a3fad35cf65f91b9816664c82f6e421d57389a45193f3e032b03d4e73
6
SHA256 (rust/2022-08-11/rust-std-1.62.0-aarch64-unknown-freebsd.tar.xz) = 18264b1c019d89f564e3583fae40667eb26a4b918ede59632f7bbb8eb5901ae6
7
SIZE (rust/2022-05-19/rust-std-1.61.0-aarch64-unknown-freebsd.tar.xz) = 23570368
7
SIZE (rust/2022-08-11/rust-std-1.62.0-aarch64-unknown-freebsd.tar.xz) = 22683064
8
SHA256 (rust/2022-05-19/cargo-1.61.0-aarch64-unknown-freebsd.tar.xz) = 3f294d64552351f159885868ffeac107fd1dbc62c550506ad4b8b595747a8c1e
8
SHA256 (rust/2022-08-11/cargo-1.62.0-aarch64-unknown-freebsd.tar.xz) = be972aa3d1ced03ee216e6d366b46f505ba83cbac682f116ea5cdef5f10963d4
9
SIZE (rust/2022-05-19/cargo-1.61.0-aarch64-unknown-freebsd.tar.xz) = 4794716
9
SIZE (rust/2022-08-11/cargo-1.62.0-aarch64-unknown-freebsd.tar.xz) = 4884760
10
SHA256 (rust/2022-05-19/rustc-1.61.0-x86_64-unknown-freebsd.tar.xz) = e3ec7b3e7913e1613e973202a915539922cda424fe0e22f17a0106f075158152
10
SHA256 (rust/2022-08-11/rustc-1.62.0-x86_64-unknown-freebsd.tar.xz) = 2de14a9ca4307453111a82d8733b0d986284d8e78b5bb2d0c5f6a483794502bc
11
SIZE (rust/2022-05-19/rustc-1.61.0-x86_64-unknown-freebsd.tar.xz) = 37986400
11
SIZE (rust/2022-08-11/rustc-1.62.0-x86_64-unknown-freebsd.tar.xz) = 36186780
12
SHA256 (rust/2022-05-19/rust-std-1.61.0-x86_64-unknown-freebsd.tar.xz) = a35bd8f17d2141e1c5384b02f0775838c08e6c4e8b5d74c5d42681f80268cab5
12
SHA256 (rust/2022-08-11/rust-std-1.62.0-x86_64-unknown-freebsd.tar.xz) = 0b2a78ec3636a90cab0923612c6ef4f68fe05e788306c33065425093de2846c7
13
SIZE (rust/2022-05-19/rust-std-1.61.0-x86_64-unknown-freebsd.tar.xz) = 23842720
13
SIZE (rust/2022-08-11/rust-std-1.62.0-x86_64-unknown-freebsd.tar.xz) = 22828324
14
SHA256 (rust/2022-05-19/cargo-1.61.0-x86_64-unknown-freebsd.tar.xz) = 70e78458896f94ed172ac4e3caf3f54eddb2a9bcca81c42800117383ba988c95
14
SHA256 (rust/2022-08-11/cargo-1.62.0-x86_64-unknown-freebsd.tar.xz) = b8e36aa5a71d645a0c41eaf2ddeab96d244a6427a05c664a86090cc3d1dc93fd
15
SIZE (rust/2022-05-19/cargo-1.61.0-x86_64-unknown-freebsd.tar.xz) = 5502300
15
SIZE (rust/2022-08-11/cargo-1.62.0-x86_64-unknown-freebsd.tar.xz) = 5581840
16
SHA256 (rust/2022-05-19/rustc-1.61.0-armv6-unknown-freebsd.tar.xz) = 9268265126c7ae989c03d1f8710ed29182a6d1a9c5217fd7ee6558e5b8b29076
16
SHA256 (rust/2022-08-11/rustc-1.62.0-armv6-unknown-freebsd.tar.xz) = 31112bc0634e805c3dc9ce5cfb7fb8de76610ec75c31f3d8db6d6539600e506a
17
SIZE (rust/2022-05-19/rustc-1.61.0-armv6-unknown-freebsd.tar.xz) = 42901832
17
SIZE (rust/2022-08-11/rustc-1.62.0-armv6-unknown-freebsd.tar.xz) = 44097768
18
SHA256 (rust/2022-05-19/rust-std-1.61.0-armv6-unknown-freebsd.tar.xz) = a0f00fc1b3dca64e4fe32ea7ef96409519cced71e58841425cb444b7189e09a6
18
SHA256 (rust/2022-08-11/rust-std-1.62.0-armv6-unknown-freebsd.tar.xz) = 704d095ef94d0f3ecb27decee036a908c4eeabf9833bec88d7061151c0660dd9
19
SIZE (rust/2022-05-19/rust-std-1.61.0-armv6-unknown-freebsd.tar.xz) = 21817044
19
SIZE (rust/2022-08-11/rust-std-1.62.0-armv6-unknown-freebsd.tar.xz) = 21001436
20
SHA256 (rust/2022-05-19/cargo-1.61.0-armv6-unknown-freebsd.tar.xz) = 6593e951345c557fa90c7732130bddfb89a6df7dc4b5d79e701740e7fc48d98a
20
SHA256 (rust/2022-08-11/cargo-1.62.0-armv6-unknown-freebsd.tar.xz) = 9eeeea39fac336f4c91563fdb0c1c89052d76095553d7bddc1ca1f14c506a1f8
21
SIZE (rust/2022-05-19/cargo-1.61.0-armv6-unknown-freebsd.tar.xz) = 4747396
21
SIZE (rust/2022-08-11/cargo-1.62.0-armv6-unknown-freebsd.tar.xz) = 4835312
22
SHA256 (rust/2022-05-19/rustc-1.61.0-armv7-unknown-freebsd.tar.xz) = d83086bf4355cc92baf908b313c3f83821ab7407a59edc2e99a234b6f56db71c
22
SHA256 (rust/2022-08-11/rustc-1.62.0-armv7-unknown-freebsd.tar.xz) = 26b902e38d7f4d98cb5756d821d3917c204d161b47c43d90cbc1b98714392d01
23
SIZE (rust/2022-05-19/rustc-1.61.0-armv7-unknown-freebsd.tar.xz) = 42713712
23
SIZE (rust/2022-08-11/rustc-1.62.0-armv7-unknown-freebsd.tar.xz) = 43670920
24
SHA256 (rust/2022-05-19/rust-std-1.61.0-armv7-unknown-freebsd.tar.xz) = 5bbdccac7a91bcbdeea3295f12e10a86515f550ece6118383f90657a247e022e
24
SHA256 (rust/2022-08-11/rust-std-1.62.0-armv7-unknown-freebsd.tar.xz) = abe9b2841781330618888ff97e0d8cc7e2891ec6e205cbad0ec947c37d415ecc
25
SIZE (rust/2022-05-19/rust-std-1.61.0-armv7-unknown-freebsd.tar.xz) = 22793208
25
SIZE (rust/2022-08-11/rust-std-1.62.0-armv7-unknown-freebsd.tar.xz) = 21926488
26
SHA256 (rust/2022-05-19/cargo-1.61.0-armv7-unknown-freebsd.tar.xz) = 24814d99e7811cfac6a51848d6a63fd6f38f9b845b29dbad550585067d6beb8d
26
SHA256 (rust/2022-08-11/cargo-1.62.0-armv7-unknown-freebsd.tar.xz) = 1c1d0099bac23d31b1f5a9754b10316cce9afacd49c581dc6cb822a0249e95ad
27
SIZE (rust/2022-05-19/cargo-1.61.0-armv7-unknown-freebsd.tar.xz) = 4733024
27
SIZE (rust/2022-08-11/cargo-1.62.0-armv7-unknown-freebsd.tar.xz) = 4823300
28
SHA256 (rust/2022-05-19/rustc-1.61.0-i686-unknown-freebsd.tar.xz) = 9aef4d35438a70b8239976364b6b7266f6f15e64b40463f81329938cda167576
28
SHA256 (rust/2022-08-11/rustc-1.62.0-i686-unknown-freebsd.tar.xz) = 0fee2caf1ffc5c5769dfac6affcbe7fc77f22fdf9af61f9c6b4e24cae9a846cd
29
SIZE (rust/2022-05-19/rustc-1.61.0-i686-unknown-freebsd.tar.xz) = 47040012
29
SIZE (rust/2022-08-11/rustc-1.62.0-i686-unknown-freebsd.tar.xz) = 49032044
30
SHA256 (rust/2022-05-19/rust-std-1.61.0-i686-unknown-freebsd.tar.xz) = 2f4b31a12a46cf4d778b6ff44503c0b4f5019870a8f27472b6c26cd387aabbf0
30
SHA256 (rust/2022-08-11/rust-std-1.62.0-i686-unknown-freebsd.tar.xz) = f50746696a7141f279c3dad031e9a26240eb6a831e150758df117063536aa2f2
31
SIZE (rust/2022-05-19/rust-std-1.61.0-i686-unknown-freebsd.tar.xz) = 23667232
31
SIZE (rust/2022-08-11/rust-std-1.62.0-i686-unknown-freebsd.tar.xz) = 22732580
32
SHA256 (rust/2022-05-19/cargo-1.61.0-i686-unknown-freebsd.tar.xz) = c3cc0f5e0b57fa220fb0d44813409584ad1d6352c2a5dc77ffe9211338c412ae
32
SHA256 (rust/2022-08-11/cargo-1.62.0-i686-unknown-freebsd.tar.xz) = 4308d5097b754d09b4124b4f5b461d835a1929ece5195931bd853d1aea8c4123
33
SIZE (rust/2022-05-19/cargo-1.61.0-i686-unknown-freebsd.tar.xz) = 5650840
33
SIZE (rust/2022-08-11/cargo-1.62.0-i686-unknown-freebsd.tar.xz) = 5744176
34
SHA256 (rust/2022-05-19/rustc-1.61.0-powerpc-unknown-freebsd.tar.xz) = 0ca81deb0faa343ff420b7f9e6f325eac366a15128b1e096eb3062516e48e36b
34
SHA256 (rust/2022-08-11/rustc-1.62.0-powerpc-unknown-freebsd.tar.xz) = 3de22d8843ce97bf04d606c7731e7fcf35feae5c17871df5f7bd7568a5dac1ca
35
SIZE (rust/2022-05-19/rustc-1.61.0-powerpc-unknown-freebsd.tar.xz) = 44567188
35
SIZE (rust/2022-08-11/rustc-1.62.0-powerpc-unknown-freebsd.tar.xz) = 46413824
36
SHA256 (rust/2022-05-19/rust-std-1.61.0-powerpc-unknown-freebsd.tar.xz) = a3a26ab34a9f62d1b9a0dba45f4d63c25994d222ddabdf909be9217b93ce6415
36
SHA256 (rust/2022-08-11/rust-std-1.62.0-powerpc-unknown-freebsd.tar.xz) = a7c0ea9c3163a1375ac268a34ef85bafc1173ce31082b76e7ce82a7b74d38614
37
SIZE (rust/2022-05-19/rust-std-1.61.0-powerpc-unknown-freebsd.tar.xz) = 21657860
37
SIZE (rust/2022-08-11/rust-std-1.62.0-powerpc-unknown-freebsd.tar.xz) = 20653544
38
SHA256 (rust/2022-05-19/cargo-1.61.0-powerpc-unknown-freebsd.tar.xz) = 4d3f3da61d993e8698d9bb13aa6eb75f00e0567b23a4e2809adde47b0e8372f0
38
SHA256 (rust/2022-08-11/cargo-1.62.0-powerpc-unknown-freebsd.tar.xz) = e37fab0dfd028fac8c530aa685c47aa12ba2d89ffb34d72e403f457f05b040d9
39
SIZE (rust/2022-05-19/cargo-1.61.0-powerpc-unknown-freebsd.tar.xz) = 5232608
39
SIZE (rust/2022-08-11/cargo-1.62.0-powerpc-unknown-freebsd.tar.xz) = 5318004
40
SHA256 (rust/2022-05-19/rustc-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 5f8878946c10350ce2ed4751baa1dd467cbbce223899086c631dc4e714bad09f
40
SHA256 (rust/2022-08-11/rustc-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 1e2b2fdde88775c872b3b0c6b7df48c0edbe4334ac859997123ad272c6ef6028
41
SIZE (rust/2022-05-19/rustc-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 51265100
41
SIZE (rust/2022-08-11/rustc-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 52646328
42
SHA256 (rust/2022-05-19/rust-std-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 45eea66649936ccc789309381a0e2cb82ee63bf7fc902262eab664cd40d373a8
42
SHA256 (rust/2022-08-11/rust-std-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 4a65020427f638a6e948040676934eedcaa416e183db8139f83d83b06eebafd8
43
SIZE (rust/2022-05-19/rust-std-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 21767000
43
SIZE (rust/2022-08-11/rust-std-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 20886148
44
SHA256 (rust/2022-05-19/cargo-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 91dfca32008126f8f526cd4913e487341c968b82b6e094df15a4760dfca400ea
44
SHA256 (rust/2022-08-11/cargo-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 73047a7b498f5a7403f7c722e6ced16639538e6ef1040eca6fe80911eca20380
45
SIZE (rust/2022-05-19/cargo-1.61.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 5345408
45
SIZE (rust/2022-08-11/cargo-1.62.0-powerpc64-unknown-freebsd-elfv1.tar.xz) = 5421660
46
SHA256 (rust/2022-05-19/rustc-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = 0f22827e20c6aed0b67450f228bfdc44b5b83abbffd9bb8bf1d529ee94aa9b95
46
SHA256 (rust/2022-08-11/rustc-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = a0a990c2e459f06cdc16d509e2a7046528d870df0974eff3eacad11654f0a990
47
SIZE (rust/2022-05-19/rustc-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = 44874472
47
SIZE (rust/2022-08-11/rustc-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = 46361760
48
SHA256 (rust/2022-05-19/rust-std-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = bae7067eac67fede90defecb5250985fc8b7fdcd22435acb795901e8a75f1f96
48
SHA256 (rust/2022-08-11/rust-std-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = 510b7ae43543acffc27ea788725ab7e683236323652296fb117443bdb87e4bca
49
SIZE (rust/2022-05-19/rust-std-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = 21828580
49
SIZE (rust/2022-08-11/rust-std-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = 21088000
50
SHA256 (rust/2022-05-19/cargo-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = 2fe81b4ee62a5370f6e5a6dc5a46d00871a9c77513eb165664e871cd66f8adac
50
SHA256 (rust/2022-08-11/cargo-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = 007e4c54449cf95ae5bbc86c559767feaae543a129b3a4d4dbc99822697765ab
51
SIZE (rust/2022-05-19/cargo-1.61.0-powerpc64le-unknown-freebsd.tar.xz) = 5265304
51
SIZE (rust/2022-08-11/cargo-1.62.0-powerpc64le-unknown-freebsd.tar.xz) = 5354032
52
SHA256 (rust/2022-05-19/rustc-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = d2d371908a8dcd49db81bd2db048c57a968e0ec8a00918ad2f80fcd306862855
52
SHA256 (rust/2022-08-11/rustc-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = fe0551721b4a4e0c17236a7527eb5c8006d3dcbba1e18bfd997bba1aff7320f3
53
SIZE (rust/2022-05-19/rustc-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = 139529684
53
SIZE (rust/2022-08-11/rustc-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = 151000056
54
SHA256 (rust/2022-05-19/rust-std-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = 0ee3a580304386a75ec500f0c9f1e853a9922c4b9521d4577a559b120e865795
54
SHA256 (rust/2022-08-11/rust-std-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = 26e3296d3e665a0049c638216c5da194dc500ae94942f5bd37c41d7512b95202
55
SIZE (rust/2022-05-19/rust-std-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = 29642992
55
SIZE (rust/2022-08-11/rust-std-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = 28966484
56
SHA256 (rust/2022-05-19/cargo-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = 89522660fbc8718ab394566fb7daf5ce95fdbabec49e7a322d561f8d81c53e1f
56
SHA256 (rust/2022-08-11/cargo-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = 4f72f54faebca015d674a53394eda4ec7b07bc70547186dbefca45b71a9c00ea
57
SIZE (rust/2022-05-19/cargo-1.61.0-riscv64gc-unknown-freebsd.tar.xz) = 26543872
57
SIZE (rust/2022-08-11/cargo-1.62.0-riscv64gc-unknown-freebsd.tar.xz) = 27235120
58
SHA256 (rust/2022-05-19/rustc-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 16d5a9a0b8f7b75ad76efcdf4bf3b7ad51d5ffae21cf04c64696803879081ffb
58
SHA256 (rust/2022-08-11/rustc-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 85282443cc7972af82999c24093a792143a642fb5f32a636c900019e0df30109
59
SIZE (rust/2022-05-19/rustc-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 42802348
59
SIZE (rust/2022-08-11/rustc-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 44366840
60
SHA256 (rust/2022-05-19/rust-std-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 5526d0f46a2829a3b4ce5147f8ce9cdc5144a811e7362cbe5666df0a35420fe0
60
SHA256 (rust/2022-08-11/rust-std-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = eea977e6cbffdb226056091c3ab565c2b3c933d37ab1a30a2baa5eccc47e2c9b
61
SIZE (rust/2022-05-19/rust-std-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 21712780
61
SIZE (rust/2022-08-11/rust-std-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 20893088
62
SHA256 (rust/2022-05-19/cargo-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 5b6fc2baa3647abee442373006da6cbccbe16b6720520bdc7ecc3b998e003538
62
SHA256 (rust/2022-08-11/cargo-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = a36cd48122c84601cf2610d0cb381e3482bc25ef3f37d6d790eaa6a1a5a1e500
63
SIZE (rust/2022-05-19/cargo-1.61.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 4966568
63
SIZE (rust/2022-08-11/cargo-1.62.0-powerpc64-unknown-freebsd-elfv2.tar.xz) = 5048488
(-)b/lang/rust/files/no-hardlinks/patch-src_bootstrap_lib.rs (-10 / +23 lines)
Lines 15-28 links during the build, so let's try that. Link Here
15
15
16
--- src/bootstrap/lib.rs.orig	2020-07-23 20:16:43 UTC
16
--- src/bootstrap/lib.rs.orig	2020-07-23 20:16:43 UTC
17
+++ src/bootstrap/lib.rs
17
+++ src/bootstrap/lib.rs
18
@@ -1173,10 +1173,6 @@ impl Build {
18
@@ -1450,19 +1450,13 @@ impl Build {
19
         if metadata.file_type().is_symlink() {
19
                 return;
20
             let link = t!(fs::read_link(src));
20
             }
21
             t!(symlink_file(link, dst));
21
         }
22
-        } else if let Ok(()) = fs::hard_link(src, dst) {
22
-        if let Ok(()) = fs::hard_link(&src, dst) {
23
-            // Attempt to "easy copy" by creating a hard link
23
-            // Attempt to "easy copy" by creating a hard link
24
-            // (symlinks don't work on windows), but if that fails
24
-            // (symlinks don't work on windows), but if that fails
25
-            // just fall back to a slow `copy` operation.
25
-            // just fall back to a slow `copy` operation.
26
         } else {
26
-        } else {
27
             if let Err(e) = fs::copy(src, dst) {
27
-            if let Err(e) = fs::copy(&src, dst) {
28
                 panic!("failed to copy `{}` to `{}`: {}", src.display(), dst.display(), e)
28
-                panic!("failed to copy `{}` to `{}`: {}", src.display(), dst.display(), e)
29
-            }
30
-            t!(fs::set_permissions(dst, metadata.permissions()));
31
-            let atime = FileTime::from_last_access_time(&metadata);
32
-            let mtime = FileTime::from_last_modification_time(&metadata);
33
-            t!(filetime::set_file_times(dst, atime, mtime));
34
+        if let Err(e) = fs::copy(&src, dst) {
35
+            panic!("failed to copy `{}` to `{}`: {}", src.display(), dst.display(), e)
36
         }
37
+        t!(fs::set_permissions(dst, metadata.permissions()));
38
+        let atime = FileTime::from_last_access_time(&metadata);
39
+        let mtime = FileTime::from_last_modification_time(&metadata);
40
+        t!(filetime::set_file_times(dst, atime, mtime));
41
     }
42
 
43
     /// Copies the `src` directory recursively to `dst`. Both are assumed to exist
29
- 
30
- Update packed_simd_2 to 0.3.8 which fixed the build with rust 1.63.0
44
- Update packed_simd_2 to 0.3.8 which fixed the build with rust 1.63.0
31
--
32
textproc/ripgrep/Makefile                                   | 2 +-
45
textproc/ripgrep/Makefile                                   | 2 +-
33
textproc/ripgrep/distinfo                                   | 6 +++---
46
textproc/ripgrep/distinfo                                   | 6 +++---
34
textproc/ripgrep/files/{patch-rust-1.60 => patch-rust-1.63} | 6 +++---
47
textproc/ripgrep/files/{patch-rust-1.60 => patch-rust-1.63} | 6 +++---
35
3 files changed, 7 insertions(+), 7 deletions(-)
48
3 files changed, 7 insertions(+), 7 deletions(-)
36
rename textproc/ripgrep/files/{patch-rust-1.60 => patch-rust-1.63} (92%)
49
rename textproc/ripgrep/files/{patch-rust-1.60 => patch-rust-1.63} (92%)
(-)b/textproc/ripgrep/Makefile (-1 / +1 lines)
Lines 57-63 CARGO_CRATES= aho-corasick-0.7.18 \ Link Here
57
		memmap2-0.3.0 \
57
		memmap2-0.3.0 \
58
		num_cpus-1.13.0 \
58
		num_cpus-1.13.0 \
59
		once_cell-1.7.2 \
59
		once_cell-1.7.2 \
60
		packed_simd_2-0.3.7 \
60
		packed_simd_2-0.3.8 \
61
		pcre2-0.2.3 \
61
		pcre2-0.2.3 \
62
		pcre2-sys-0.2.5 \
62
		pcre2-sys-0.2.5 \
63
		pkg-config-0.3.19 \
63
		pkg-config-0.3.19 \
(-)b/textproc/ripgrep/distinfo (-3 / +3 lines)
Lines 1-4 Link Here
1
TIMESTAMP = 1649425059
1
TIMESTAMP = 1660728123
2
SHA256 (rust/crates/aho-corasick-0.7.18.crate) = 1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f
2
SHA256 (rust/crates/aho-corasick-0.7.18.crate) = 1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f
3
SIZE (rust/crates/aho-corasick-0.7.18.crate) = 112923
3
SIZE (rust/crates/aho-corasick-0.7.18.crate) = 112923
4
SHA256 (rust/crates/atty-0.2.14.crate) = d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
4
SHA256 (rust/crates/atty-0.2.14.crate) = d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
Lines 77-84 SHA256 (rust/crates/num_cpus-1.13.0.crate) = 05499f3756671c15885fee9034446956fff Link Here
77
SIZE (rust/crates/num_cpus-1.13.0.crate) = 14704
77
SIZE (rust/crates/num_cpus-1.13.0.crate) = 14704
78
SHA256 (rust/crates/once_cell-1.7.2.crate) = af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3
78
SHA256 (rust/crates/once_cell-1.7.2.crate) = af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3
79
SIZE (rust/crates/once_cell-1.7.2.crate) = 28250
79
SIZE (rust/crates/once_cell-1.7.2.crate) = 28250
80
SHA256 (rust/crates/packed_simd_2-0.3.7.crate) = defdcfef86dcc44ad208f71d9ff4ce28df6537a4e0d6b0e8e845cb8ca10059a6
80
SHA256 (rust/crates/packed_simd_2-0.3.8.crate) = a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282
81
SIZE (rust/crates/packed_simd_2-0.3.7.crate) = 97413
81
SIZE (rust/crates/packed_simd_2-0.3.8.crate) = 97388
82
SHA256 (rust/crates/pcre2-0.2.3.crate) = 85b30f2f69903b439dd9dc9e824119b82a55bf113b29af8d70948a03c1b11ab1
82
SHA256 (rust/crates/pcre2-0.2.3.crate) = 85b30f2f69903b439dd9dc9e824119b82a55bf113b29af8d70948a03c1b11ab1
83
SIZE (rust/crates/pcre2-0.2.3.crate) = 19605
83
SIZE (rust/crates/pcre2-0.2.3.crate) = 19605
84
SHA256 (rust/crates/pcre2-sys-0.2.5.crate) = dec30e5e9ec37eb8fbf1dea5989bc957fd3df56fbee5061aa7b7a99dbb37b722
84
SHA256 (rust/crates/pcre2-sys-0.2.5.crate) = dec30e5e9ec37eb8fbf1dea5989bc957fd3df56fbee5061aa7b7a99dbb37b722
(-)b/textproc/ripgrep/files/patch-rust-1.63 (-5 / +3 lines)
Lines 1-4 Link Here
1
--- Cargo.lock.orig	2022-04-08 15:28:37 UTC
1
--- Cargo.lock.orig	2021-06-12 14:12:24 UTC
2
+++ Cargo.lock
2
+++ Cargo.lock
3
@@ -62,12 +62,6 @@ name = "cfg-if"
3
@@ -62,12 +62,6 @@ name = "cfg-if"
4
 
4
 
Lines 54-63 Link Here
54
 [[package]]
54
 [[package]]
55
 name = "packed_simd_2"
55
 name = "packed_simd_2"
56
-version = "0.3.5"
56
-version = "0.3.5"
57
+version = "0.3.7"
57
+version = "0.3.8"
58
 source = "registry+https://github.com/rust-lang/crates.io-index"
58
 source = "registry+https://github.com/rust-lang/crates.io-index"
59
-checksum = "0e64858a2d3733fdd61adfdd6da89aa202f7ff0e741d2fc7ed1e452ba9dc99d7"
59
-checksum = "0e64858a2d3733fdd61adfdd6da89aa202f7ff0e741d2fc7ed1e452ba9dc99d7"
60
+checksum = "defdcfef86dcc44ad208f71d9ff4ce28df6537a4e0d6b0e8e845cb8ca10059a6"
60
+checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282"
61
 dependencies = [
61
 dependencies = [
62
- "cfg-if 0.1.10",
62
- "cfg-if 0.1.10",
63
+ "cfg-if",
63
+ "cfg-if",
64
- 
65
- Update packed_simd_2 to 0.3.8 which fixed the build with rust 1.63.0
64
- Update packed_simd_2 to 0.3.8 which fixed the build with rust 1.63.0
66
- lazy::OnceCell is moved to cell::OnceCell
65
- lazy::OnceCell is moved to cell::OnceCell
67
--
68
games/veloren/Makefile              |  2 +-
66
games/veloren/Makefile              |  2 +-
69
games/veloren/distinfo              |  6 ++---
67
games/veloren/distinfo              |  6 ++---
70
games/veloren/files/patch-rust-1.63 | 36 +++++++++++++++++++++++++++++
68
games/veloren/files/patch-rust-1.63 | 36 +++++++++++++++++++++++++++++
71
3 files changed, 40 insertions(+), 4 deletions(-)
69
3 files changed, 40 insertions(+), 4 deletions(-)
72
create mode 100644 games/veloren/files/patch-rust-1.63
70
create mode 100644 games/veloren/files/patch-rust-1.63
(-)b/games/veloren/Makefile (-1 / +1 lines)
Lines 409-415 CARGO_CRATES= ab_glyph-0.2.15 \ Link Here
409
		os_str_bytes-6.0.0 \
409
		os_str_bytes-6.0.0 \
410
		owned_ttf_parser-0.6.0 \
410
		owned_ttf_parser-0.6.0 \
411
		owned_ttf_parser-0.15.0 \
411
		owned_ttf_parser-0.15.0 \
412
		packed_simd_2-0.3.7 \
412
		packed_simd_2-0.3.8 \
413
		parking_lot-0.10.2 \
413
		parking_lot-0.10.2 \
414
		parking_lot-0.11.2 \
414
		parking_lot-0.11.2 \
415
		parking_lot-0.12.0 \
415
		parking_lot-0.12.0 \
(-)b/games/veloren/distinfo (-3 / +3 lines)
Lines 1-4 Link Here
1
TIMESTAMP = 1658582101
1
TIMESTAMP = 1660732539
2
SHA256 (rust/crates/ab_glyph-0.2.15.crate) = 24606928a235e73cdef55a0c909719cadd72fce573e5713d58cb2952d8f5794c
2
SHA256 (rust/crates/ab_glyph-0.2.15.crate) = 24606928a235e73cdef55a0c909719cadd72fce573e5713d58cb2952d8f5794c
3
SIZE (rust/crates/ab_glyph-0.2.15.crate) = 15906
3
SIZE (rust/crates/ab_glyph-0.2.15.crate) = 15906
4
SHA256 (rust/crates/ab_glyph_rasterizer-0.1.5.crate) = a13739d7177fbd22bb0ed28badfff9f372f8bef46c863db4e1c6248f6b223b6e
4
SHA256 (rust/crates/ab_glyph_rasterizer-0.1.5.crate) = a13739d7177fbd22bb0ed28badfff9f372f8bef46c863db4e1c6248f6b223b6e
Lines 751-758 SHA256 (rust/crates/owned_ttf_parser-0.6.0.crate) = 9f923fb806c46266c02ab4a5b239 Link Here
751
SIZE (rust/crates/owned_ttf_parser-0.6.0.crate) = 20574
751
SIZE (rust/crates/owned_ttf_parser-0.6.0.crate) = 20574
752
SHA256 (rust/crates/owned_ttf_parser-0.15.0.crate) = 4fb1e509cfe7a12db2a90bfa057dfcdbc55a347f5da677c506b53dd099cfec9d
752
SHA256 (rust/crates/owned_ttf_parser-0.15.0.crate) = 4fb1e509cfe7a12db2a90bfa057dfcdbc55a347f5da677c506b53dd099cfec9d
753
SIZE (rust/crates/owned_ttf_parser-0.15.0.crate) = 23088
753
SIZE (rust/crates/owned_ttf_parser-0.15.0.crate) = 23088
754
SHA256 (rust/crates/packed_simd_2-0.3.7.crate) = defdcfef86dcc44ad208f71d9ff4ce28df6537a4e0d6b0e8e845cb8ca10059a6
754
SHA256 (rust/crates/packed_simd_2-0.3.8.crate) = a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282
755
SIZE (rust/crates/packed_simd_2-0.3.7.crate) = 97413
755
SIZE (rust/crates/packed_simd_2-0.3.8.crate) = 97388
756
SHA256 (rust/crates/parking_lot-0.10.2.crate) = d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e
756
SHA256 (rust/crates/parking_lot-0.10.2.crate) = d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e
757
SIZE (rust/crates/parking_lot-0.10.2.crate) = 39536
757
SIZE (rust/crates/parking_lot-0.10.2.crate) = 39536
758
SHA256 (rust/crates/parking_lot-0.11.2.crate) = 7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99
758
SHA256 (rust/crates/parking_lot-0.11.2.crate) = 7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99
(-)b/games/veloren/files/patch-rust-1.63 (-2 / +36 lines)
Added Link Here
0
- 
1
--- Cargo.lock.orig	2022-08-17 12:36:05 UTC
2
+++ Cargo.lock
3
@@ -4025,9 +4025,9 @@ name = "packed_simd_2"
4
 
5
 [[package]]
6
 name = "packed_simd_2"
7
-version = "0.3.7"
8
+version = "0.3.8"
9
 source = "registry+https://github.com/rust-lang/crates.io-index"
10
-checksum = "defdcfef86dcc44ad208f71d9ff4ce28df6537a4e0d6b0e8e845cb8ca10059a6"
11
+checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282"
12
 dependencies = [
13
  "cfg-if 1.0.0",
14
  "libm 0.1.4",
15
@@ -6241,7 +6241,7 @@ dependencies = [
16
 source = "registry+https://github.com/rust-lang/crates.io-index"
17
 checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0"
18
 dependencies = [
19
- "cfg-if 1.0.0",
20
+ "cfg-if 0.1.10",
21
  "rand 0.8.5",
22
  "static_assertions",
23
 ]
24
25
26
--- voxygen/src/scene/terrain.rs.orig	2022-08-17 11:42:07.587067000 +0000
27
+++ voxygen/src/scene/terrain.rs	2022-08-17 11:43:10.451160000 +0000
28
@@ -555,7 +557,7 @@ impl SpriteRenderContext {
29
             }
30
         });
31
 
32
-        let init = core::lazy::OnceCell::new();
33
+        let init = core::cell::OnceCell::new();
34
         let mut join_handle = Some(join_handle);
35
         let mut closure = move |renderer: &mut Renderer| {
36
             // The second unwrap can only fail if the sprite meshing thread panics, which
1
- Fix packed_simd with the relevant parts of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
37
- Fix packed_simd with the relevant parts of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
2
--
3
www/firefox-esr/files/patch-rust-1.63 | 767 ++++++++++++++++++++++++++
38
www/firefox-esr/files/patch-rust-1.63 | 767 ++++++++++++++++++++++++++
4
1 file changed, 767 insertions(+)
39
1 file changed, 767 insertions(+)
5
create mode 100644 www/firefox-esr/files/patch-rust-1.63
40
create mode 100644 www/firefox-esr/files/patch-rust-1.63
(-)b/www/firefox-esr/files/patch-rust-1.63 (-2 / +767 lines)
Added Link Here
0
- 
1
Backport of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
2
Only the rust code is present (not the .toml, .json and .lock files)
3
4
5
diff --git a/third_party/rust/packed_simd/build.rs b/third_party/rust/packed_simd/build.rs
6
--- third_party/rust/packed_simd/build.rs
7
+++ third_party/rust/packed_simd/build.rs
8
@@ -1,6 +1,11 @@
9
+use rustc_version::{version, Version};
10
+
11
 fn main() {
12
     let target = std::env::var("TARGET").expect("TARGET environment variable not defined");
13
     if target.contains("neon") {
14
         println!("cargo:rustc-cfg=libcore_neon");
15
     }
16
+    if version().unwrap() < Version::parse("1.61.0-alpha").unwrap() {
17
+        println!("cargo:rustc-cfg=aarch64_target_feature");
18
+    }
19
 }
20
diff --git a/third_party/rust/packed_simd/src/api.rs b/third_party/rust/packed_simd/src/api.rs
21
--- third_party/rust/packed_simd/src/api.rs
22
+++ third_party/rust/packed_simd/src/api.rs
23
@@ -1,13 +1,13 @@
24
 //! Implements the Simd<[T; N]> APIs
25
 
26
 #[macro_use]
27
 mod bitmask;
28
-crate mod cast;
29
+pub(crate) mod cast;
30
 #[macro_use]
31
 mod cmp;
32
 #[macro_use]
33
 mod default;
34
 #[macro_use]
35
 mod fmt;
36
 #[macro_use]
37
 mod from;
38
@@ -32,17 +32,17 @@ mod shuffle1_dyn;
39
 #[macro_use]
40
 mod slice;
41
 #[macro_use]
42
 mod swap_bytes;
43
 #[macro_use]
44
 mod bit_manip;
45
 
46
 #[cfg(feature = "into_bits")]
47
-crate mod into_bits;
48
+pub(crate) mod into_bits;
49
 
50
 macro_rules! impl_i {
51
     ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident, $mask_ty:ident
52
      | $ielem_ty:ident, $ibitmask_ty:ident | $test_tt:tt | $($elem_ids:ident),*
53
      | From: $($from_vec_ty:ident),* | $(#[$doc:meta])*) => {
54
         impl_minimal_iuf!([$elem_ty; $elem_n]: $tuple_id | $ielem_ty | $test_tt
55
                           | $($elem_ids),* | $(#[$doc])*);
56
         impl_ops_vector_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
57
diff --git a/third_party/rust/packed_simd/src/codegen.rs b/third_party/rust/packed_simd/src/codegen.rs
58
--- third_party/rust/packed_simd/src/codegen.rs
59
+++ third_party/rust/packed_simd/src/codegen.rs
60
@@ -1,24 +1,24 @@
61
 //! Code-generation utilities
62
 
63
-crate mod bit_manip;
64
-crate mod llvm;
65
-crate mod math;
66
-crate mod reductions;
67
-crate mod shuffle;
68
-crate mod shuffle1_dyn;
69
-crate mod swap_bytes;
70
+pub(crate) mod bit_manip;
71
+pub(crate) mod llvm;
72
+pub(crate) mod math;
73
+pub(crate) mod reductions;
74
+pub(crate) mod shuffle;
75
+pub(crate) mod shuffle1_dyn;
76
+pub(crate) mod swap_bytes;
77
 
78
 macro_rules! impl_simd_array {
79
     ([$elem_ty:ident; $elem_count:expr]:
80
      $tuple_id:ident | $($elem_tys:ident),*) => {
81
         #[derive(Copy, Clone)]
82
         #[repr(simd)]
83
-        pub struct $tuple_id($(crate $elem_tys),*);
84
+        pub struct $tuple_id($(pub(crate) $elem_tys),*);
85
         //^^^^^^^ leaked through SimdArray
86
 
87
         impl crate::sealed::Seal for [$elem_ty; $elem_count] {}
88
 
89
         impl crate::sealed::SimdArray for [$elem_ty; $elem_count] {
90
             type Tuple = $tuple_id;
91
             type T = $elem_ty;
92
             const N: usize = $elem_count;
93
@@ -30,33 +30,33 @@ macro_rules! impl_simd_array {
94
             type Element = $elem_ty;
95
             const LANES: usize = $elem_count;
96
             type LanesType = [u32; $elem_count];
97
         }
98
 
99
     }
100
 }
101
 
102
-crate mod pointer_sized_int;
103
+pub(crate) mod pointer_sized_int;
104
 
105
-crate mod v16;
106
-crate use self::v16::*;
107
+pub(crate) mod v16;
108
+pub(crate) use self::v16::*;
109
 
110
-crate mod v32;
111
-crate use self::v32::*;
112
+pub(crate) mod v32;
113
+pub(crate) use self::v32::*;
114
 
115
-crate mod v64;
116
-crate use self::v64::*;
117
+pub(crate) mod v64;
118
+pub(crate) use self::v64::*;
119
 
120
-crate mod v128;
121
-crate use self::v128::*;
122
+pub(crate) mod v128;
123
+pub(crate) use self::v128::*;
124
 
125
-crate mod v256;
126
-crate use self::v256::*;
127
+pub(crate) mod v256;
128
+pub(crate) use self::v256::*;
129
 
130
-crate mod v512;
131
-crate use self::v512::*;
132
+pub(crate) mod v512;
133
+pub(crate) use self::v512::*;
134
 
135
-crate mod vSize;
136
-crate use self::vSize::*;
137
+pub(crate) mod vSize;
138
+pub(crate) use self::vSize::*;
139
 
140
-crate mod vPtr;
141
-crate use self::vPtr::*;
142
+pub(crate) mod vPtr;
143
+pub(crate) use self::vPtr::*;
144
diff --git a/third_party/rust/packed_simd/src/codegen/bit_manip.rs b/third_party/rust/packed_simd/src/codegen/bit_manip.rs
145
--- third_party/rust/packed_simd/src/codegen/bit_manip.rs
146
+++ third_party/rust/packed_simd/src/codegen/bit_manip.rs
147
@@ -1,12 +1,12 @@
148
 //! LLVM bit manipulation intrinsics.
149
 #[rustfmt::skip]
150
 
151
-use crate::*;
152
+pub(crate) use crate::*;
153
 
154
 #[allow(improper_ctypes, dead_code)]
155
 extern "C" {
156
     #[link_name = "llvm.ctlz.v2i8"]
157
     fn ctlz_u8x2(x: u8x2, is_zero_undef: bool) -> u8x2;
158
     #[link_name = "llvm.ctlz.v4i8"]
159
     fn ctlz_u8x4(x: u8x4, is_zero_undef: bool) -> u8x4;
160
     #[link_name = "llvm.ctlz.v8i8"]
161
@@ -142,17 +142,17 @@ extern "C" {
162
     #[link_name = "llvm.ctpop.v1i128"]
163
     fn ctpop_u128x1(x: u128x1) -> u128x1;
164
     #[link_name = "llvm.ctpop.v2i128"]
165
     fn ctpop_u128x2(x: u128x2) -> u128x2;
166
     #[link_name = "llvm.ctpop.v4i128"]
167
     fn ctpop_u128x4(x: u128x4) -> u128x4;
168
 }
169
 
170
-crate trait BitManip {
171
+pub(crate) trait BitManip {
172
     fn ctpop(self) -> Self;
173
     fn ctlz(self) -> Self;
174
     fn cttz(self) -> Self;
175
 }
176
 
177
 macro_rules! impl_bit_manip {
178
     (inner: $ty:ident, $scalar:ty, $uty:ident,
179
      $ctpop:ident, $ctlz:ident, $cttz:ident) => {
180
diff --git a/third_party/rust/packed_simd/src/codegen/llvm.rs b/third_party/rust/packed_simd/src/codegen/llvm.rs
181
--- third_party/rust/packed_simd/src/codegen/llvm.rs
182
+++ third_party/rust/packed_simd/src/codegen/llvm.rs
183
@@ -71,58 +71,58 @@ pub unsafe fn __shuffle_vector64<const I
184
 where
185
     T: Simd,
186
     <T as Simd>::Element: Shuffle<[u32; 64], Output = U>,
187
 {
188
     simd_shuffle64(x, y, IDX)
189
 }
190
 
191
 extern "platform-intrinsic" {
192
-    crate fn simd_eq<T, U>(x: T, y: T) -> U;
193
-    crate fn simd_ne<T, U>(x: T, y: T) -> U;
194
-    crate fn simd_lt<T, U>(x: T, y: T) -> U;
195
-    crate fn simd_le<T, U>(x: T, y: T) -> U;
196
-    crate fn simd_gt<T, U>(x: T, y: T) -> U;
197
-    crate fn simd_ge<T, U>(x: T, y: T) -> U;
198
+    pub(crate) fn simd_eq<T, U>(x: T, y: T) -> U;
199
+    pub(crate) fn simd_ne<T, U>(x: T, y: T) -> U;
200
+    pub(crate) fn simd_lt<T, U>(x: T, y: T) -> U;
201
+    pub(crate) fn simd_le<T, U>(x: T, y: T) -> U;
202
+    pub(crate) fn simd_gt<T, U>(x: T, y: T) -> U;
203
+    pub(crate) fn simd_ge<T, U>(x: T, y: T) -> U;
204
 
205
-    crate fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T;
206
-    crate fn simd_extract<T, U>(x: T, idx: u32) -> U;
207
+    pub(crate) fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T;
208
+    pub(crate) fn simd_extract<T, U>(x: T, idx: u32) -> U;
209
 
210
-    crate fn simd_cast<T, U>(x: T) -> U;
211
+    pub(crate) fn simd_cast<T, U>(x: T) -> U;
212
 
213
-    crate fn simd_add<T>(x: T, y: T) -> T;
214
-    crate fn simd_sub<T>(x: T, y: T) -> T;
215
-    crate fn simd_mul<T>(x: T, y: T) -> T;
216
-    crate fn simd_div<T>(x: T, y: T) -> T;
217
-    crate fn simd_rem<T>(x: T, y: T) -> T;
218
-    crate fn simd_shl<T>(x: T, y: T) -> T;
219
-    crate fn simd_shr<T>(x: T, y: T) -> T;
220
-    crate fn simd_and<T>(x: T, y: T) -> T;
221
-    crate fn simd_or<T>(x: T, y: T) -> T;
222
-    crate fn simd_xor<T>(x: T, y: T) -> T;
223
+    pub(crate) fn simd_add<T>(x: T, y: T) -> T;
224
+    pub(crate) fn simd_sub<T>(x: T, y: T) -> T;
225
+    pub(crate) fn simd_mul<T>(x: T, y: T) -> T;
226
+    pub(crate) fn simd_div<T>(x: T, y: T) -> T;
227
+    pub(crate) fn simd_rem<T>(x: T, y: T) -> T;
228
+    pub(crate) fn simd_shl<T>(x: T, y: T) -> T;
229
+    pub(crate) fn simd_shr<T>(x: T, y: T) -> T;
230
+    pub(crate) fn simd_and<T>(x: T, y: T) -> T;
231
+    pub(crate) fn simd_or<T>(x: T, y: T) -> T;
232
+    pub(crate) fn simd_xor<T>(x: T, y: T) -> T;
233
 
234
-    crate fn simd_reduce_add_unordered<T, U>(x: T) -> U;
235
-    crate fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
236
-    crate fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
237
-    crate fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
238
-    crate fn simd_reduce_min<T, U>(x: T) -> U;
239
-    crate fn simd_reduce_max<T, U>(x: T) -> U;
240
-    crate fn simd_reduce_min_nanless<T, U>(x: T) -> U;
241
-    crate fn simd_reduce_max_nanless<T, U>(x: T) -> U;
242
-    crate fn simd_reduce_and<T, U>(x: T) -> U;
243
-    crate fn simd_reduce_or<T, U>(x: T) -> U;
244
-    crate fn simd_reduce_xor<T, U>(x: T) -> U;
245
-    crate fn simd_reduce_all<T>(x: T) -> bool;
246
-    crate fn simd_reduce_any<T>(x: T) -> bool;
247
+    pub(crate) fn simd_reduce_add_unordered<T, U>(x: T) -> U;
248
+    pub(crate) fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
249
+    pub(crate) fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
250
+    pub(crate) fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
251
+    pub(crate) fn simd_reduce_min<T, U>(x: T) -> U;
252
+    pub(crate) fn simd_reduce_max<T, U>(x: T) -> U;
253
+    pub(crate) fn simd_reduce_min_nanless<T, U>(x: T) -> U;
254
+    pub(crate) fn simd_reduce_max_nanless<T, U>(x: T) -> U;
255
+    pub(crate) fn simd_reduce_and<T, U>(x: T) -> U;
256
+    pub(crate) fn simd_reduce_or<T, U>(x: T) -> U;
257
+    pub(crate) fn simd_reduce_xor<T, U>(x: T) -> U;
258
+    pub(crate) fn simd_reduce_all<T>(x: T) -> bool;
259
+    pub(crate) fn simd_reduce_any<T>(x: T) -> bool;
260
 
261
-    crate fn simd_select<M, T>(m: M, a: T, b: T) -> T;
262
+    pub(crate) fn simd_select<M, T>(m: M, a: T, b: T) -> T;
263
 
264
-    crate fn simd_fmin<T>(a: T, b: T) -> T;
265
-    crate fn simd_fmax<T>(a: T, b: T) -> T;
266
+    pub(crate) fn simd_fmin<T>(a: T, b: T) -> T;
267
+    pub(crate) fn simd_fmax<T>(a: T, b: T) -> T;
268
 
269
-    crate fn simd_fsqrt<T>(a: T) -> T;
270
-    crate fn simd_fma<T>(a: T, b: T, c: T) -> T;
271
+    pub(crate) fn simd_fsqrt<T>(a: T) -> T;
272
+    pub(crate) fn simd_fma<T>(a: T, b: T, c: T) -> T;
273
 
274
-    crate fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
275
-    crate fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
276
+    pub(crate) fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
277
+    pub(crate) fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
278
 
279
-    crate fn simd_bitmask<T, U>(value: T) -> U;
280
+    pub(crate) fn simd_bitmask<T, U>(value: T) -> U;
281
 }
282
diff --git a/third_party/rust/packed_simd/src/codegen/math.rs b/third_party/rust/packed_simd/src/codegen/math.rs
283
--- third_party/rust/packed_simd/src/codegen/math.rs
284
+++ third_party/rust/packed_simd/src/codegen/math.rs
285
@@ -1,3 +1,3 @@
286
 //! Vertical math operations
287
 
288
-crate mod float;
289
+pub(crate) mod float;
290
diff --git a/third_party/rust/packed_simd/src/codegen/math/float.rs b/third_party/rust/packed_simd/src/codegen/math/float.rs
291
--- third_party/rust/packed_simd/src/codegen/math/float.rs
292
+++ third_party/rust/packed_simd/src/codegen/math/float.rs
293
@@ -1,18 +1,18 @@
294
 //! Vertical floating-point math operations.
295
 #![allow(clippy::useless_transmute)]
296
 
297
 #[macro_use]
298
-crate mod macros;
299
-crate mod abs;
300
-crate mod cos;
301
-crate mod cos_pi;
302
-crate mod exp;
303
-crate mod ln;
304
-crate mod mul_add;
305
-crate mod mul_adde;
306
-crate mod powf;
307
-crate mod sin;
308
-crate mod sin_cos_pi;
309
-crate mod sin_pi;
310
-crate mod sqrt;
311
-crate mod sqrte;
312
+pub(crate) mod macros;
313
+pub(crate) mod abs;
314
+pub(crate) mod cos;
315
+pub(crate) mod cos_pi;
316
+pub(crate) mod exp;
317
+pub(crate) mod ln;
318
+pub(crate) mod mul_add;
319
+pub(crate) mod mul_adde;
320
+pub(crate) mod powf;
321
+pub(crate) mod sin;
322
+pub(crate) mod sin_cos_pi;
323
+pub(crate) mod sin_pi;
324
+pub(crate) mod sqrt;
325
+pub(crate) mod sqrte;
326
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/abs.rs b/third_party/rust/packed_simd/src/codegen/math/float/abs.rs
327
--- third_party/rust/packed_simd/src/codegen/math/float/abs.rs
328
+++ third_party/rust/packed_simd/src/codegen/math/float/abs.rs
329
@@ -1,16 +1,16 @@
330
 //! Vertical floating-point `fabs`
331
 #![allow(unused)]
332
 
333
 // FIXME 64-bit 1 elem vectors fabs
334
 
335
 use crate::*;
336
 
337
-crate trait Abs {
338
+pub(crate) trait Abs {
339
     fn abs(self) -> Self;
340
 }
341
 
342
 #[allow(improper_ctypes)]
343
 extern "C" {
344
     #[link_name = "llvm.fabs.v2f32"]
345
     fn fabs_v2f32(x: f32x2) -> f32x2;
346
     #[link_name = "llvm.fabs.v4f32"]
347
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/cos.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos.rs
348
--- third_party/rust/packed_simd/src/codegen/math/float/cos.rs
349
+++ third_party/rust/packed_simd/src/codegen/math/float/cos.rs
350
@@ -1,16 +1,16 @@
351
 //! Vertical floating-point `cos`
352
 #![allow(unused)]
353
 
354
 // FIXME 64-bit 1 elem vector cos
355
 
356
 use crate::*;
357
 
358
-crate trait Cos {
359
+pub(crate) trait Cos {
360
     fn cos(self) -> Self;
361
 }
362
 
363
 #[allow(improper_ctypes)]
364
 extern "C" {
365
     #[link_name = "llvm.cos.v2f32"]
366
     fn cos_v2f32(x: f32x2) -> f32x2;
367
     #[link_name = "llvm.cos.v4f32"]
368
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
369
--- third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
370
+++ third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
371
@@ -1,16 +1,16 @@
372
 //! Vertical floating-point `cos`
373
 #![allow(unused)]
374
 
375
 // FIXME 64-bit 1 elem vectors cos_pi
376
 
377
 use crate::*;
378
 
379
-crate trait CosPi {
380
+pub(crate) trait CosPi {
381
     fn cos_pi(self) -> Self;
382
 }
383
 
384
 gen_unary_impl_table!(CosPi, cos_pi);
385
 
386
 macro_rules! impl_def {
387
     ($vid:ident, $PI:path) => {
388
         impl CosPi for $vid {
389
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/exp.rs b/third_party/rust/packed_simd/src/codegen/math/float/exp.rs
390
--- third_party/rust/packed_simd/src/codegen/math/float/exp.rs
391
+++ third_party/rust/packed_simd/src/codegen/math/float/exp.rs
392
@@ -1,16 +1,16 @@
393
 //! Vertical floating-point `exp`
394
 #![allow(unused)]
395
 
396
 // FIXME 64-bit expgle elem vectors misexpg
397
 
398
 use crate::*;
399
 
400
-crate trait Exp {
401
+pub(crate) trait Exp {
402
     fn exp(self) -> Self;
403
 }
404
 
405
 #[allow(improper_ctypes)]
406
 extern "C" {
407
     #[link_name = "llvm.exp.v2f32"]
408
     fn exp_v2f32(x: f32x2) -> f32x2;
409
     #[link_name = "llvm.exp.v4f32"]
410
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/ln.rs b/third_party/rust/packed_simd/src/codegen/math/float/ln.rs
411
--- third_party/rust/packed_simd/src/codegen/math/float/ln.rs
412
+++ third_party/rust/packed_simd/src/codegen/math/float/ln.rs
413
@@ -1,16 +1,16 @@
414
 //! Vertical floating-point `ln`
415
 #![allow(unused)]
416
 
417
 // FIXME 64-bit lngle elem vectors mislng
418
 
419
 use crate::*;
420
 
421
-crate trait Ln {
422
+pub(crate) trait Ln {
423
     fn ln(self) -> Self;
424
 }
425
 
426
 #[allow(improper_ctypes)]
427
 extern "C" {
428
     #[link_name = "llvm.log.v2f32"]
429
     fn ln_v2f32(x: f32x2) -> f32x2;
430
     #[link_name = "llvm.log.v4f32"]
431
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
432
--- third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
433
+++ third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
434
@@ -1,15 +1,15 @@
435
 //! Vertical floating-point `mul_add`
436
 #![allow(unused)]
437
 use crate::*;
438
 
439
 // FIXME: 64-bit 1 element mul_add
440
 
441
-crate trait MulAdd {
442
+pub(crate) trait MulAdd {
443
     fn mul_add(self, y: Self, z: Self) -> Self;
444
 }
445
 
446
 #[cfg(not(target_arch = "s390x"))]
447
 #[allow(improper_ctypes)]
448
 extern "C" {
449
     #[link_name = "llvm.fma.v2f32"]
450
     fn fma_v2f32(x: f32x2, y: f32x2, z: f32x2) -> f32x2;
451
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
452
--- third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
453
+++ third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
454
@@ -1,14 +1,14 @@
455
 //! Approximation for floating-point `mul_add`
456
 use crate::*;
457
 
458
 // FIXME: 64-bit 1 element mul_adde
459
 
460
-crate trait MulAddE {
461
+pub(crate) trait MulAddE {
462
     fn mul_adde(self, y: Self, z: Self) -> Self;
463
 }
464
 
465
 #[cfg(not(target_arch = "s390x"))]
466
 #[allow(improper_ctypes)]
467
 extern "C" {
468
     #[link_name = "llvm.fmuladd.v2f32"]
469
     fn fmuladd_v2f32(x: f32x2, y: f32x2, z: f32x2) -> f32x2;
470
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/powf.rs b/third_party/rust/packed_simd/src/codegen/math/float/powf.rs
471
--- third_party/rust/packed_simd/src/codegen/math/float/powf.rs
472
+++ third_party/rust/packed_simd/src/codegen/math/float/powf.rs
473
@@ -1,16 +1,16 @@
474
 //! Vertical floating-point `powf`
475
 #![allow(unused)]
476
 
477
 // FIXME 64-bit powfgle elem vectors mispowfg
478
 
479
 use crate::*;
480
 
481
-crate trait Powf {
482
+pub(crate) trait Powf {
483
     fn powf(self, x: Self) -> Self;
484
 }
485
 
486
 #[allow(improper_ctypes)]
487
 extern "C" {
488
     #[link_name = "llvm.pow.v2f32"]
489
     fn powf_v2f32(x: f32x2, y: f32x2) -> f32x2;
490
     #[link_name = "llvm.pow.v4f32"]
491
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin.rs
492
--- third_party/rust/packed_simd/src/codegen/math/float/sin.rs
493
+++ third_party/rust/packed_simd/src/codegen/math/float/sin.rs
494
@@ -1,16 +1,16 @@
495
 //! Vertical floating-point `sin`
496
 #![allow(unused)]
497
 
498
 // FIXME 64-bit 1 elem vectors sin
499
 
500
 use crate::*;
501
 
502
-crate trait Sin {
503
+pub(crate) trait Sin {
504
     fn sin(self) -> Self;
505
 }
506
 
507
 #[allow(improper_ctypes)]
508
 extern "C" {
509
     #[link_name = "llvm.sin.v2f32"]
510
     fn sin_v2f32(x: f32x2) -> f32x2;
511
     #[link_name = "llvm.sin.v4f32"]
512
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
513
--- third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
514
+++ third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
515
@@ -1,16 +1,16 @@
516
 //! Vertical floating-point `sin_cos`
517
 #![allow(unused)]
518
 
519
 // FIXME 64-bit 1 elem vectors sin_cos
520
 
521
 use crate::*;
522
 
523
-crate trait SinCosPi: Sized {
524
+pub(crate) trait SinCosPi: Sized {
525
     type Output;
526
     fn sin_cos_pi(self) -> Self::Output;
527
 }
528
 
529
 macro_rules! impl_def {
530
     ($vid:ident, $PI:path) => {
531
         impl SinCosPi for $vid {
532
             type Output = (Self, Self);
533
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
534
--- third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
535
+++ third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
536
@@ -1,16 +1,16 @@
537
 //! Vertical floating-point `sin_pi`
538
 #![allow(unused)]
539
 
540
 // FIXME 64-bit 1 elem vectors sin_pi
541
 
542
 use crate::*;
543
 
544
-crate trait SinPi {
545
+pub(crate) trait SinPi {
546
     fn sin_pi(self) -> Self;
547
 }
548
 
549
 gen_unary_impl_table!(SinPi, sin_pi);
550
 
551
 macro_rules! impl_def {
552
     ($vid:ident, $PI:path) => {
553
         impl SinPi for $vid {
554
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
555
--- third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
556
+++ third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
557
@@ -1,16 +1,16 @@
558
 //! Vertical floating-point `sqrt`
559
 #![allow(unused)]
560
 
561
 // FIXME 64-bit 1 elem vectors sqrt
562
 
563
 use crate::*;
564
 
565
-crate trait Sqrt {
566
+pub(crate) trait Sqrt {
567
     fn sqrt(self) -> Self;
568
 }
569
 
570
 #[allow(improper_ctypes)]
571
 extern "C" {
572
     #[link_name = "llvm.sqrt.v2f32"]
573
     fn sqrt_v2f32(x: f32x2) -> f32x2;
574
     #[link_name = "llvm.sqrt.v4f32"]
575
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
576
--- third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
577
+++ third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
578
@@ -1,17 +1,17 @@
579
 //! Vertical floating-point `sqrt`
580
 #![allow(unused)]
581
 
582
 // FIXME 64-bit 1 elem vectors sqrte
583
 
584
 use crate::llvm::simd_fsqrt;
585
 use crate::*;
586
 
587
-crate trait Sqrte {
588
+pub(crate) trait Sqrte {
589
     fn sqrte(self) -> Self;
590
 }
591
 
592
 gen_unary_impl_table!(Sqrte, sqrte);
593
 
594
 cfg_if! {
595
     if #[cfg(all(target_arch = "x86_64", feature = "sleef-sys"))] {
596
         use sleef_sys::*;
597
diff --git a/third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs b/third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
598
--- third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
599
+++ third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
600
@@ -1,28 +1,28 @@
601
 //! Provides `isize` and `usize`
602
 
603
 use cfg_if::cfg_if;
604
 
605
 cfg_if! {
606
     if #[cfg(target_pointer_width = "8")] {
607
-        crate type isize_ = i8;
608
-        crate type usize_ = u8;
609
+        pub(crate) type isize_ = i8;
610
+        pub(crate) type usize_ = u8;
611
     } else if #[cfg(target_pointer_width = "16")] {
612
-        crate type isize_ = i16;
613
-        crate type usize_ = u16;
614
+        pub(crate) type isize_ = i16;
615
+        pub(crate) type usize_ = u16;
616
     } else if #[cfg(target_pointer_width = "32")] {
617
-        crate type isize_ = i32;
618
-        crate type usize_ = u32;
619
+        pub(crate) type isize_ = i32;
620
+        pub(crate) type usize_ = u32;
621
 
622
     } else if #[cfg(target_pointer_width = "64")] {
623
-        crate type isize_ = i64;
624
-        crate type usize_ = u64;
625
+        pub(crate) type isize_ = i64;
626
+        pub(crate) type usize_ = u64;
627
     } else if #[cfg(target_pointer_width = "64")] {
628
-        crate type isize_ = i64;
629
-        crate type usize_ = u64;
630
+        pub(crate) type isize_ = i64;
631
+        pub(crate) type usize_ = u64;
632
     } else if #[cfg(target_pointer_width = "128")] {
633
-        crate type isize_ = i128;
634
-        crate type usize_ = u128;
635
+        pub(crate) type isize_ = i128;
636
+        pub(crate) type usize_ = u128;
637
     } else {
638
         compile_error!("unsupported target_pointer_width");
639
     }
640
 }
641
diff --git a/third_party/rust/packed_simd/src/codegen/reductions.rs b/third_party/rust/packed_simd/src/codegen/reductions.rs
642
--- third_party/rust/packed_simd/src/codegen/reductions.rs
643
+++ third_party/rust/packed_simd/src/codegen/reductions.rs
644
@@ -1,1 +1,1 @@
645
-crate mod mask;
646
+pub(crate) mod mask;
647
diff --git a/third_party/rust/packed_simd/src/codegen/reductions/mask.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask.rs
648
--- third_party/rust/packed_simd/src/codegen/reductions/mask.rs
649
+++ third_party/rust/packed_simd/src/codegen/reductions/mask.rs
650
@@ -2,21 +2,21 @@
651
 //!
652
 //! Works around [LLVM bug 36702].
653
 //!
654
 //! [LLVM bug 36702]: https://bugs.llvm.org/show_bug.cgi?id=36702
655
 #![allow(unused_macros)]
656
 
657
 use crate::*;
658
 
659
-crate trait All: crate::marker::Sized {
660
+pub(crate) trait All: crate::marker::Sized {
661
     unsafe fn all(self) -> bool;
662
 }
663
 
664
-crate trait Any: crate::marker::Sized {
665
+pub(crate) trait Any: crate::marker::Sized {
666
     unsafe fn any(self) -> bool;
667
 }
668
 
669
 #[macro_use]
670
 mod fallback_impl;
671
 
672
 cfg_if! {
673
     if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
674
diff --git a/third_party/rust/packed_simd/src/codegen/swap_bytes.rs b/third_party/rust/packed_simd/src/codegen/swap_bytes.rs
675
--- third_party/rust/packed_simd/src/codegen/swap_bytes.rs
676
+++ third_party/rust/packed_simd/src/codegen/swap_bytes.rs
677
@@ -1,26 +1,26 @@
678
 //! Horizontal swap bytes reductions.
679
 
680
 // FIXME: investigate using `llvm.bswap`
681
 // https://github.com/rust-lang-nursery/packed_simd/issues/19
682
 
683
 use crate::*;
684
 
685
-crate trait SwapBytes {
686
+pub(crate) trait SwapBytes {
687
     fn swap_bytes(self) -> Self;
688
 }
689
 
690
 macro_rules! impl_swap_bytes {
691
     (v16: $($id:ident,)+) => {
692
         $(
693
             impl SwapBytes for $id {
694
                 #[inline]
695
                 fn swap_bytes(self) -> Self {
696
-                    unsafe { shuffle!(self, [1, 0]) }
697
+                    shuffle!(self, [1, 0])
698
                 }
699
             }
700
         )+
701
     };
702
     (v32: $($id:ident,)+) => {
703
         $(
704
             impl SwapBytes for $id {
705
                 #[inline]
706
diff --git a/third_party/rust/packed_simd/src/codegen/vPtr.rs b/third_party/rust/packed_simd/src/codegen/vPtr.rs
707
--- third_party/rust/packed_simd/src/codegen/vPtr.rs
708
+++ third_party/rust/packed_simd/src/codegen/vPtr.rs
709
@@ -1,16 +1,16 @@
710
 //! Pointer vector types
711
 
712
 macro_rules! impl_simd_ptr {
713
     ([$ptr_ty:ty; $elem_count:expr]: $tuple_id:ident | $ty:ident
714
      | $($tys:ty),*) => {
715
         #[derive(Copy, Clone)]
716
         #[repr(simd)]
717
-        pub struct $tuple_id<$ty>($(crate $tys),*);
718
+        pub struct $tuple_id<$ty>($(pub(crate) $tys),*);
719
         //^^^^^^^ leaked through SimdArray
720
 
721
         impl<$ty> crate::sealed::Seal for [$ptr_ty; $elem_count] {}
722
         impl<$ty> crate::sealed::SimdArray for [$ptr_ty; $elem_count] {
723
             type Tuple = $tuple_id<$ptr_ty>;
724
             type T = $ptr_ty;
725
             const N: usize = $elem_count;
726
             type NT = [u32; $elem_count];
727
diff --git a/third_party/rust/packed_simd/src/lib.rs b/third_party/rust/packed_simd/src/lib.rs
728
--- third_party/rust/packed_simd/src/lib.rs
729
+++ third_party/rust/packed_simd/src/lib.rs
730
@@ -206,14 +206,13 @@
731
     rustc_attrs,
732
     platform_intrinsics,
733
     stdsimd,
734
-    aarch64_target_feature,
735
     arm_target_feature,
736
     link_llvm_intrinsics,
737
     core_intrinsics,
738
     stmt_expr_attributes,
739
-    crate_visibility_modifier,
740
     custom_inner_attributes
741
 )]
742
+#![cfg_attr(aarch64_target_feature, feature(aarch64_target_feature))]
743
 #![allow(non_camel_case_types, non_snake_case,
744
         // FIXME: these types are unsound in C FFI already
745
         // See https://github.com/rust-lang/rust/issues/53346
746
@@ -334,6 +333,6 @@ pub use self::codegen::llvm::{
747
     __shuffle_vector4, __shuffle_vector64, __shuffle_vector8,
748
 };
749
 
750
-crate mod llvm {
751
-    crate use crate::codegen::llvm::*;
752
+pub(crate) mod llvm {
753
+    pub(crate) use crate::codegen::llvm::*;
754
 }
755
diff --git a/third_party/rust/packed_simd/src/testing.rs b/third_party/rust/packed_simd/src/testing.rs
756
--- third_party/rust/packed_simd/src/testing.rs
757
+++ third_party/rust/packed_simd/src/testing.rs
758
@@ -1,8 +1,8 @@
759
 //! Testing macros and other utilities.
760
 
761
 #[macro_use]
762
 mod macros;
763
 
764
 #[cfg(test)]
765
 #[macro_use]
766
-crate mod utils;
767
+pub(crate) mod utils;
1
- Fix packed_simd with the relevant parts of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
768
- Fix packed_simd with the relevant parts of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
2
--
3
mail/thunderbird/files/patch-rust-1.63 | 767 +++++++++++++++++++++++++
769
mail/thunderbird/files/patch-rust-1.63 | 767 +++++++++++++++++++++++++
4
1 file changed, 767 insertions(+)
770
1 file changed, 767 insertions(+)
5
create mode 100644 mail/thunderbird/files/patch-rust-1.63
771
create mode 100644 mail/thunderbird/files/patch-rust-1.63
(-)b/mail/thunderbird/files/patch-rust-1.63 (-1 / +767 lines)
Added Link Here
0
- 
1
Backport of https://hg.mozilla.org/releases/mozilla-beta/raw-rev/c37c77a20f96
2
Only the rust code is present (not the .toml, .json and .lock files)
3
4
5
diff --git a/third_party/rust/packed_simd/build.rs b/third_party/rust/packed_simd/build.rs
6
--- third_party/rust/packed_simd/build.rs
7
+++ third_party/rust/packed_simd/build.rs
8
@@ -1,6 +1,11 @@
9
+use rustc_version::{version, Version};
10
+
11
 fn main() {
12
     let target = std::env::var("TARGET").expect("TARGET environment variable not defined");
13
     if target.contains("neon") {
14
         println!("cargo:rustc-cfg=libcore_neon");
15
     }
16
+    if version().unwrap() < Version::parse("1.61.0-alpha").unwrap() {
17
+        println!("cargo:rustc-cfg=aarch64_target_feature");
18
+    }
19
 }
20
diff --git a/third_party/rust/packed_simd/src/api.rs b/third_party/rust/packed_simd/src/api.rs
21
--- third_party/rust/packed_simd/src/api.rs
22
+++ third_party/rust/packed_simd/src/api.rs
23
@@ -1,13 +1,13 @@
24
 //! Implements the Simd<[T; N]> APIs
25
 
26
 #[macro_use]
27
 mod bitmask;
28
-crate mod cast;
29
+pub(crate) mod cast;
30
 #[macro_use]
31
 mod cmp;
32
 #[macro_use]
33
 mod default;
34
 #[macro_use]
35
 mod fmt;
36
 #[macro_use]
37
 mod from;
38
@@ -32,17 +32,17 @@ mod shuffle1_dyn;
39
 #[macro_use]
40
 mod slice;
41
 #[macro_use]
42
 mod swap_bytes;
43
 #[macro_use]
44
 mod bit_manip;
45
 
46
 #[cfg(feature = "into_bits")]
47
-crate mod into_bits;
48
+pub(crate) mod into_bits;
49
 
50
 macro_rules! impl_i {
51
     ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident, $mask_ty:ident
52
      | $ielem_ty:ident, $ibitmask_ty:ident | $test_tt:tt | $($elem_ids:ident),*
53
      | From: $($from_vec_ty:ident),* | $(#[$doc:meta])*) => {
54
         impl_minimal_iuf!([$elem_ty; $elem_n]: $tuple_id | $ielem_ty | $test_tt
55
                           | $($elem_ids),* | $(#[$doc])*);
56
         impl_ops_vector_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
57
diff --git a/third_party/rust/packed_simd/src/codegen.rs b/third_party/rust/packed_simd/src/codegen.rs
58
--- third_party/rust/packed_simd/src/codegen.rs
59
+++ third_party/rust/packed_simd/src/codegen.rs
60
@@ -1,24 +1,24 @@
61
 //! Code-generation utilities
62
 
63
-crate mod bit_manip;
64
-crate mod llvm;
65
-crate mod math;
66
-crate mod reductions;
67
-crate mod shuffle;
68
-crate mod shuffle1_dyn;
69
-crate mod swap_bytes;
70
+pub(crate) mod bit_manip;
71
+pub(crate) mod llvm;
72
+pub(crate) mod math;
73
+pub(crate) mod reductions;
74
+pub(crate) mod shuffle;
75
+pub(crate) mod shuffle1_dyn;
76
+pub(crate) mod swap_bytes;
77
 
78
 macro_rules! impl_simd_array {
79
     ([$elem_ty:ident; $elem_count:expr]:
80
      $tuple_id:ident | $($elem_tys:ident),*) => {
81
         #[derive(Copy, Clone)]
82
         #[repr(simd)]
83
-        pub struct $tuple_id($(crate $elem_tys),*);
84
+        pub struct $tuple_id($(pub(crate) $elem_tys),*);
85
         //^^^^^^^ leaked through SimdArray
86
 
87
         impl crate::sealed::Seal for [$elem_ty; $elem_count] {}
88
 
89
         impl crate::sealed::SimdArray for [$elem_ty; $elem_count] {
90
             type Tuple = $tuple_id;
91
             type T = $elem_ty;
92
             const N: usize = $elem_count;
93
@@ -30,33 +30,33 @@ macro_rules! impl_simd_array {
94
             type Element = $elem_ty;
95
             const LANES: usize = $elem_count;
96
             type LanesType = [u32; $elem_count];
97
         }
98
 
99
     }
100
 }
101
 
102
-crate mod pointer_sized_int;
103
+pub(crate) mod pointer_sized_int;
104
 
105
-crate mod v16;
106
-crate use self::v16::*;
107
+pub(crate) mod v16;
108
+pub(crate) use self::v16::*;
109
 
110
-crate mod v32;
111
-crate use self::v32::*;
112
+pub(crate) mod v32;
113
+pub(crate) use self::v32::*;
114
 
115
-crate mod v64;
116
-crate use self::v64::*;
117
+pub(crate) mod v64;
118
+pub(crate) use self::v64::*;
119
 
120
-crate mod v128;
121
-crate use self::v128::*;
122
+pub(crate) mod v128;
123
+pub(crate) use self::v128::*;
124
 
125
-crate mod v256;
126
-crate use self::v256::*;
127
+pub(crate) mod v256;
128
+pub(crate) use self::v256::*;
129
 
130
-crate mod v512;
131
-crate use self::v512::*;
132
+pub(crate) mod v512;
133
+pub(crate) use self::v512::*;
134
 
135
-crate mod vSize;
136
-crate use self::vSize::*;
137
+pub(crate) mod vSize;
138
+pub(crate) use self::vSize::*;
139
 
140
-crate mod vPtr;
141
-crate use self::vPtr::*;
142
+pub(crate) mod vPtr;
143
+pub(crate) use self::vPtr::*;
144
diff --git a/third_party/rust/packed_simd/src/codegen/bit_manip.rs b/third_party/rust/packed_simd/src/codegen/bit_manip.rs
145
--- third_party/rust/packed_simd/src/codegen/bit_manip.rs
146
+++ third_party/rust/packed_simd/src/codegen/bit_manip.rs
147
@@ -1,12 +1,12 @@
148
 //! LLVM bit manipulation intrinsics.
149
 #[rustfmt::skip]
150
 
151
-use crate::*;
152
+pub(crate) use crate::*;
153
 
154
 #[allow(improper_ctypes, dead_code)]
155
 extern "C" {
156
     #[link_name = "llvm.ctlz.v2i8"]
157
     fn ctlz_u8x2(x: u8x2, is_zero_undef: bool) -> u8x2;
158
     #[link_name = "llvm.ctlz.v4i8"]
159
     fn ctlz_u8x4(x: u8x4, is_zero_undef: bool) -> u8x4;
160
     #[link_name = "llvm.ctlz.v8i8"]
161
@@ -142,17 +142,17 @@ extern "C" {
162
     #[link_name = "llvm.ctpop.v1i128"]
163
     fn ctpop_u128x1(x: u128x1) -> u128x1;
164
     #[link_name = "llvm.ctpop.v2i128"]
165
     fn ctpop_u128x2(x: u128x2) -> u128x2;
166
     #[link_name = "llvm.ctpop.v4i128"]
167
     fn ctpop_u128x4(x: u128x4) -> u128x4;
168
 }
169
 
170
-crate trait BitManip {
171
+pub(crate) trait BitManip {
172
     fn ctpop(self) -> Self;
173
     fn ctlz(self) -> Self;
174
     fn cttz(self) -> Self;
175
 }
176
 
177
 macro_rules! impl_bit_manip {
178
     (inner: $ty:ident, $scalar:ty, $uty:ident,
179
      $ctpop:ident, $ctlz:ident, $cttz:ident) => {
180
diff --git a/third_party/rust/packed_simd/src/codegen/llvm.rs b/third_party/rust/packed_simd/src/codegen/llvm.rs
181
--- third_party/rust/packed_simd/src/codegen/llvm.rs
182
+++ third_party/rust/packed_simd/src/codegen/llvm.rs
183
@@ -71,58 +71,58 @@ pub unsafe fn __shuffle_vector64<const I
184
 where
185
     T: Simd,
186
     <T as Simd>::Element: Shuffle<[u32; 64], Output = U>,
187
 {
188
     simd_shuffle64(x, y, IDX)
189
 }
190
 
191
 extern "platform-intrinsic" {
192
-    crate fn simd_eq<T, U>(x: T, y: T) -> U;
193
-    crate fn simd_ne<T, U>(x: T, y: T) -> U;
194
-    crate fn simd_lt<T, U>(x: T, y: T) -> U;
195
-    crate fn simd_le<T, U>(x: T, y: T) -> U;
196
-    crate fn simd_gt<T, U>(x: T, y: T) -> U;
197
-    crate fn simd_ge<T, U>(x: T, y: T) -> U;
198
+    pub(crate) fn simd_eq<T, U>(x: T, y: T) -> U;
199
+    pub(crate) fn simd_ne<T, U>(x: T, y: T) -> U;
200
+    pub(crate) fn simd_lt<T, U>(x: T, y: T) -> U;
201
+    pub(crate) fn simd_le<T, U>(x: T, y: T) -> U;
202
+    pub(crate) fn simd_gt<T, U>(x: T, y: T) -> U;
203
+    pub(crate) fn simd_ge<T, U>(x: T, y: T) -> U;
204
 
205
-    crate fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T;
206
-    crate fn simd_extract<T, U>(x: T, idx: u32) -> U;
207
+    pub(crate) fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T;
208
+    pub(crate) fn simd_extract<T, U>(x: T, idx: u32) -> U;
209
 
210
-    crate fn simd_cast<T, U>(x: T) -> U;
211
+    pub(crate) fn simd_cast<T, U>(x: T) -> U;
212
 
213
-    crate fn simd_add<T>(x: T, y: T) -> T;
214
-    crate fn simd_sub<T>(x: T, y: T) -> T;
215
-    crate fn simd_mul<T>(x: T, y: T) -> T;
216
-    crate fn simd_div<T>(x: T, y: T) -> T;
217
-    crate fn simd_rem<T>(x: T, y: T) -> T;
218
-    crate fn simd_shl<T>(x: T, y: T) -> T;
219
-    crate fn simd_shr<T>(x: T, y: T) -> T;
220
-    crate fn simd_and<T>(x: T, y: T) -> T;
221
-    crate fn simd_or<T>(x: T, y: T) -> T;
222
-    crate fn simd_xor<T>(x: T, y: T) -> T;
223
+    pub(crate) fn simd_add<T>(x: T, y: T) -> T;
224
+    pub(crate) fn simd_sub<T>(x: T, y: T) -> T;
225
+    pub(crate) fn simd_mul<T>(x: T, y: T) -> T;
226
+    pub(crate) fn simd_div<T>(x: T, y: T) -> T;
227
+    pub(crate) fn simd_rem<T>(x: T, y: T) -> T;
228
+    pub(crate) fn simd_shl<T>(x: T, y: T) -> T;
229
+    pub(crate) fn simd_shr<T>(x: T, y: T) -> T;
230
+    pub(crate) fn simd_and<T>(x: T, y: T) -> T;
231
+    pub(crate) fn simd_or<T>(x: T, y: T) -> T;
232
+    pub(crate) fn simd_xor<T>(x: T, y: T) -> T;
233
 
234
-    crate fn simd_reduce_add_unordered<T, U>(x: T) -> U;
235
-    crate fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
236
-    crate fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
237
-    crate fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
238
-    crate fn simd_reduce_min<T, U>(x: T) -> U;
239
-    crate fn simd_reduce_max<T, U>(x: T) -> U;
240
-    crate fn simd_reduce_min_nanless<T, U>(x: T) -> U;
241
-    crate fn simd_reduce_max_nanless<T, U>(x: T) -> U;
242
-    crate fn simd_reduce_and<T, U>(x: T) -> U;
243
-    crate fn simd_reduce_or<T, U>(x: T) -> U;
244
-    crate fn simd_reduce_xor<T, U>(x: T) -> U;
245
-    crate fn simd_reduce_all<T>(x: T) -> bool;
246
-    crate fn simd_reduce_any<T>(x: T) -> bool;
247
+    pub(crate) fn simd_reduce_add_unordered<T, U>(x: T) -> U;
248
+    pub(crate) fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
249
+    pub(crate) fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
250
+    pub(crate) fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
251
+    pub(crate) fn simd_reduce_min<T, U>(x: T) -> U;
252
+    pub(crate) fn simd_reduce_max<T, U>(x: T) -> U;
253
+    pub(crate) fn simd_reduce_min_nanless<T, U>(x: T) -> U;
254
+    pub(crate) fn simd_reduce_max_nanless<T, U>(x: T) -> U;
255
+    pub(crate) fn simd_reduce_and<T, U>(x: T) -> U;
256
+    pub(crate) fn simd_reduce_or<T, U>(x: T) -> U;
257
+    pub(crate) fn simd_reduce_xor<T, U>(x: T) -> U;
258
+    pub(crate) fn simd_reduce_all<T>(x: T) -> bool;
259
+    pub(crate) fn simd_reduce_any<T>(x: T) -> bool;
260
 
261
-    crate fn simd_select<M, T>(m: M, a: T, b: T) -> T;
262
+    pub(crate) fn simd_select<M, T>(m: M, a: T, b: T) -> T;
263
 
264
-    crate fn simd_fmin<T>(a: T, b: T) -> T;
265
-    crate fn simd_fmax<T>(a: T, b: T) -> T;
266
+    pub(crate) fn simd_fmin<T>(a: T, b: T) -> T;
267
+    pub(crate) fn simd_fmax<T>(a: T, b: T) -> T;
268
 
269
-    crate fn simd_fsqrt<T>(a: T) -> T;
270
-    crate fn simd_fma<T>(a: T, b: T, c: T) -> T;
271
+    pub(crate) fn simd_fsqrt<T>(a: T) -> T;
272
+    pub(crate) fn simd_fma<T>(a: T, b: T, c: T) -> T;
273
 
274
-    crate fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
275
-    crate fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
276
+    pub(crate) fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
277
+    pub(crate) fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
278
 
279
-    crate fn simd_bitmask<T, U>(value: T) -> U;
280
+    pub(crate) fn simd_bitmask<T, U>(value: T) -> U;
281
 }
282
diff --git a/third_party/rust/packed_simd/src/codegen/math.rs b/third_party/rust/packed_simd/src/codegen/math.rs
283
--- third_party/rust/packed_simd/src/codegen/math.rs
284
+++ third_party/rust/packed_simd/src/codegen/math.rs
285
@@ -1,3 +1,3 @@
286
 //! Vertical math operations
287
 
288
-crate mod float;
289
+pub(crate) mod float;
290
diff --git a/third_party/rust/packed_simd/src/codegen/math/float.rs b/third_party/rust/packed_simd/src/codegen/math/float.rs
291
--- third_party/rust/packed_simd/src/codegen/math/float.rs
292
+++ third_party/rust/packed_simd/src/codegen/math/float.rs
293
@@ -1,18 +1,18 @@
294
 //! Vertical floating-point math operations.
295
 #![allow(clippy::useless_transmute)]
296
 
297
 #[macro_use]
298
-crate mod macros;
299
-crate mod abs;
300
-crate mod cos;
301
-crate mod cos_pi;
302
-crate mod exp;
303
-crate mod ln;
304
-crate mod mul_add;
305
-crate mod mul_adde;
306
-crate mod powf;
307
-crate mod sin;
308
-crate mod sin_cos_pi;
309
-crate mod sin_pi;
310
-crate mod sqrt;
311
-crate mod sqrte;
312
+pub(crate) mod macros;
313
+pub(crate) mod abs;
314
+pub(crate) mod cos;
315
+pub(crate) mod cos_pi;
316
+pub(crate) mod exp;
317
+pub(crate) mod ln;
318
+pub(crate) mod mul_add;
319
+pub(crate) mod mul_adde;
320
+pub(crate) mod powf;
321
+pub(crate) mod sin;
322
+pub(crate) mod sin_cos_pi;
323
+pub(crate) mod sin_pi;
324
+pub(crate) mod sqrt;
325
+pub(crate) mod sqrte;
326
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/abs.rs b/third_party/rust/packed_simd/src/codegen/math/float/abs.rs
327
--- third_party/rust/packed_simd/src/codegen/math/float/abs.rs
328
+++ third_party/rust/packed_simd/src/codegen/math/float/abs.rs
329
@@ -1,16 +1,16 @@
330
 //! Vertical floating-point `fabs`
331
 #![allow(unused)]
332
 
333
 // FIXME 64-bit 1 elem vectors fabs
334
 
335
 use crate::*;
336
 
337
-crate trait Abs {
338
+pub(crate) trait Abs {
339
     fn abs(self) -> Self;
340
 }
341
 
342
 #[allow(improper_ctypes)]
343
 extern "C" {
344
     #[link_name = "llvm.fabs.v2f32"]
345
     fn fabs_v2f32(x: f32x2) -> f32x2;
346
     #[link_name = "llvm.fabs.v4f32"]
347
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/cos.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos.rs
348
--- third_party/rust/packed_simd/src/codegen/math/float/cos.rs
349
+++ third_party/rust/packed_simd/src/codegen/math/float/cos.rs
350
@@ -1,16 +1,16 @@
351
 //! Vertical floating-point `cos`
352
 #![allow(unused)]
353
 
354
 // FIXME 64-bit 1 elem vector cos
355
 
356
 use crate::*;
357
 
358
-crate trait Cos {
359
+pub(crate) trait Cos {
360
     fn cos(self) -> Self;
361
 }
362
 
363
 #[allow(improper_ctypes)]
364
 extern "C" {
365
     #[link_name = "llvm.cos.v2f32"]
366
     fn cos_v2f32(x: f32x2) -> f32x2;
367
     #[link_name = "llvm.cos.v4f32"]
368
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
369
--- third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
370
+++ third_party/rust/packed_simd/src/codegen/math/float/cos_pi.rs
371
@@ -1,16 +1,16 @@
372
 //! Vertical floating-point `cos`
373
 #![allow(unused)]
374
 
375
 // FIXME 64-bit 1 elem vectors cos_pi
376
 
377
 use crate::*;
378
 
379
-crate trait CosPi {
380
+pub(crate) trait CosPi {
381
     fn cos_pi(self) -> Self;
382
 }
383
 
384
 gen_unary_impl_table!(CosPi, cos_pi);
385
 
386
 macro_rules! impl_def {
387
     ($vid:ident, $PI:path) => {
388
         impl CosPi for $vid {
389
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/exp.rs b/third_party/rust/packed_simd/src/codegen/math/float/exp.rs
390
--- third_party/rust/packed_simd/src/codegen/math/float/exp.rs
391
+++ third_party/rust/packed_simd/src/codegen/math/float/exp.rs
392
@@ -1,16 +1,16 @@
393
 //! Vertical floating-point `exp`
394
 #![allow(unused)]
395
 
396
 // FIXME 64-bit expgle elem vectors misexpg
397
 
398
 use crate::*;
399
 
400
-crate trait Exp {
401
+pub(crate) trait Exp {
402
     fn exp(self) -> Self;
403
 }
404
 
405
 #[allow(improper_ctypes)]
406
 extern "C" {
407
     #[link_name = "llvm.exp.v2f32"]
408
     fn exp_v2f32(x: f32x2) -> f32x2;
409
     #[link_name = "llvm.exp.v4f32"]
410
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/ln.rs b/third_party/rust/packed_simd/src/codegen/math/float/ln.rs
411
--- third_party/rust/packed_simd/src/codegen/math/float/ln.rs
412
+++ third_party/rust/packed_simd/src/codegen/math/float/ln.rs
413
@@ -1,16 +1,16 @@
414
 //! Vertical floating-point `ln`
415
 #![allow(unused)]
416
 
417
 // FIXME 64-bit lngle elem vectors mislng
418
 
419
 use crate::*;
420
 
421
-crate trait Ln {
422
+pub(crate) trait Ln {
423
     fn ln(self) -> Self;
424
 }
425
 
426
 #[allow(improper_ctypes)]
427
 extern "C" {
428
     #[link_name = "llvm.log.v2f32"]
429
     fn ln_v2f32(x: f32x2) -> f32x2;
430
     #[link_name = "llvm.log.v4f32"]
431
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
432
--- third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
433
+++ third_party/rust/packed_simd/src/codegen/math/float/mul_add.rs
434
@@ -1,15 +1,15 @@
435
 //! Vertical floating-point `mul_add`
436
 #![allow(unused)]
437
 use crate::*;
438
 
439
 // FIXME: 64-bit 1 element mul_add
440
 
441
-crate trait MulAdd {
442
+pub(crate) trait MulAdd {
443
     fn mul_add(self, y: Self, z: Self) -> Self;
444
 }
445
 
446
 #[cfg(not(target_arch = "s390x"))]
447
 #[allow(improper_ctypes)]
448
 extern "C" {
449
     #[link_name = "llvm.fma.v2f32"]
450
     fn fma_v2f32(x: f32x2, y: f32x2, z: f32x2) -> f32x2;
451
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs b/third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
452
--- third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
453
+++ third_party/rust/packed_simd/src/codegen/math/float/mul_adde.rs
454
@@ -1,14 +1,14 @@
455
 //! Approximation for floating-point `mul_add`
456
 use crate::*;
457
 
458
 // FIXME: 64-bit 1 element mul_adde
459
 
460
-crate trait MulAddE {
461
+pub(crate) trait MulAddE {
462
     fn mul_adde(self, y: Self, z: Self) -> Self;
463
 }
464
 
465
 #[cfg(not(target_arch = "s390x"))]
466
 #[allow(improper_ctypes)]
467
 extern "C" {
468
     #[link_name = "llvm.fmuladd.v2f32"]
469
     fn fmuladd_v2f32(x: f32x2, y: f32x2, z: f32x2) -> f32x2;
470
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/powf.rs b/third_party/rust/packed_simd/src/codegen/math/float/powf.rs
471
--- third_party/rust/packed_simd/src/codegen/math/float/powf.rs
472
+++ third_party/rust/packed_simd/src/codegen/math/float/powf.rs
473
@@ -1,16 +1,16 @@
474
 //! Vertical floating-point `powf`
475
 #![allow(unused)]
476
 
477
 // FIXME 64-bit powfgle elem vectors mispowfg
478
 
479
 use crate::*;
480
 
481
-crate trait Powf {
482
+pub(crate) trait Powf {
483
     fn powf(self, x: Self) -> Self;
484
 }
485
 
486
 #[allow(improper_ctypes)]
487
 extern "C" {
488
     #[link_name = "llvm.pow.v2f32"]
489
     fn powf_v2f32(x: f32x2, y: f32x2) -> f32x2;
490
     #[link_name = "llvm.pow.v4f32"]
491
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin.rs
492
--- third_party/rust/packed_simd/src/codegen/math/float/sin.rs
493
+++ third_party/rust/packed_simd/src/codegen/math/float/sin.rs
494
@@ -1,16 +1,16 @@
495
 //! Vertical floating-point `sin`
496
 #![allow(unused)]
497
 
498
 // FIXME 64-bit 1 elem vectors sin
499
 
500
 use crate::*;
501
 
502
-crate trait Sin {
503
+pub(crate) trait Sin {
504
     fn sin(self) -> Self;
505
 }
506
 
507
 #[allow(improper_ctypes)]
508
 extern "C" {
509
     #[link_name = "llvm.sin.v2f32"]
510
     fn sin_v2f32(x: f32x2) -> f32x2;
511
     #[link_name = "llvm.sin.v4f32"]
512
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
513
--- third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
514
+++ third_party/rust/packed_simd/src/codegen/math/float/sin_cos_pi.rs
515
@@ -1,16 +1,16 @@
516
 //! Vertical floating-point `sin_cos`
517
 #![allow(unused)]
518
 
519
 // FIXME 64-bit 1 elem vectors sin_cos
520
 
521
 use crate::*;
522
 
523
-crate trait SinCosPi: Sized {
524
+pub(crate) trait SinCosPi: Sized {
525
     type Output;
526
     fn sin_cos_pi(self) -> Self::Output;
527
 }
528
 
529
 macro_rules! impl_def {
530
     ($vid:ident, $PI:path) => {
531
         impl SinCosPi for $vid {
532
             type Output = (Self, Self);
533
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs b/third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
534
--- third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
535
+++ third_party/rust/packed_simd/src/codegen/math/float/sin_pi.rs
536
@@ -1,16 +1,16 @@
537
 //! Vertical floating-point `sin_pi`
538
 #![allow(unused)]
539
 
540
 // FIXME 64-bit 1 elem vectors sin_pi
541
 
542
 use crate::*;
543
 
544
-crate trait SinPi {
545
+pub(crate) trait SinPi {
546
     fn sin_pi(self) -> Self;
547
 }
548
 
549
 gen_unary_impl_table!(SinPi, sin_pi);
550
 
551
 macro_rules! impl_def {
552
     ($vid:ident, $PI:path) => {
553
         impl SinPi for $vid {
554
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
555
--- third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
556
+++ third_party/rust/packed_simd/src/codegen/math/float/sqrt.rs
557
@@ -1,16 +1,16 @@
558
 //! Vertical floating-point `sqrt`
559
 #![allow(unused)]
560
 
561
 // FIXME 64-bit 1 elem vectors sqrt
562
 
563
 use crate::*;
564
 
565
-crate trait Sqrt {
566
+pub(crate) trait Sqrt {
567
     fn sqrt(self) -> Self;
568
 }
569
 
570
 #[allow(improper_ctypes)]
571
 extern "C" {
572
     #[link_name = "llvm.sqrt.v2f32"]
573
     fn sqrt_v2f32(x: f32x2) -> f32x2;
574
     #[link_name = "llvm.sqrt.v4f32"]
575
diff --git a/third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs b/third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
576
--- third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
577
+++ third_party/rust/packed_simd/src/codegen/math/float/sqrte.rs
578
@@ -1,17 +1,17 @@
579
 //! Vertical floating-point `sqrt`
580
 #![allow(unused)]
581
 
582
 // FIXME 64-bit 1 elem vectors sqrte
583
 
584
 use crate::llvm::simd_fsqrt;
585
 use crate::*;
586
 
587
-crate trait Sqrte {
588
+pub(crate) trait Sqrte {
589
     fn sqrte(self) -> Self;
590
 }
591
 
592
 gen_unary_impl_table!(Sqrte, sqrte);
593
 
594
 cfg_if! {
595
     if #[cfg(all(target_arch = "x86_64", feature = "sleef-sys"))] {
596
         use sleef_sys::*;
597
diff --git a/third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs b/third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
598
--- third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
599
+++ third_party/rust/packed_simd/src/codegen/pointer_sized_int.rs
600
@@ -1,28 +1,28 @@
601
 //! Provides `isize` and `usize`
602
 
603
 use cfg_if::cfg_if;
604
 
605
 cfg_if! {
606
     if #[cfg(target_pointer_width = "8")] {
607
-        crate type isize_ = i8;
608
-        crate type usize_ = u8;
609
+        pub(crate) type isize_ = i8;
610
+        pub(crate) type usize_ = u8;
611
     } else if #[cfg(target_pointer_width = "16")] {
612
-        crate type isize_ = i16;
613
-        crate type usize_ = u16;
614
+        pub(crate) type isize_ = i16;
615
+        pub(crate) type usize_ = u16;
616
     } else if #[cfg(target_pointer_width = "32")] {
617
-        crate type isize_ = i32;
618
-        crate type usize_ = u32;
619
+        pub(crate) type isize_ = i32;
620
+        pub(crate) type usize_ = u32;
621
 
622
     } else if #[cfg(target_pointer_width = "64")] {
623
-        crate type isize_ = i64;
624
-        crate type usize_ = u64;
625
+        pub(crate) type isize_ = i64;
626
+        pub(crate) type usize_ = u64;
627
     } else if #[cfg(target_pointer_width = "64")] {
628
-        crate type isize_ = i64;
629
-        crate type usize_ = u64;
630
+        pub(crate) type isize_ = i64;
631
+        pub(crate) type usize_ = u64;
632
     } else if #[cfg(target_pointer_width = "128")] {
633
-        crate type isize_ = i128;
634
-        crate type usize_ = u128;
635
+        pub(crate) type isize_ = i128;
636
+        pub(crate) type usize_ = u128;
637
     } else {
638
         compile_error!("unsupported target_pointer_width");
639
     }
640
 }
641
diff --git a/third_party/rust/packed_simd/src/codegen/reductions.rs b/third_party/rust/packed_simd/src/codegen/reductions.rs
642
--- third_party/rust/packed_simd/src/codegen/reductions.rs
643
+++ third_party/rust/packed_simd/src/codegen/reductions.rs
644
@@ -1,1 +1,1 @@
645
-crate mod mask;
646
+pub(crate) mod mask;
647
diff --git a/third_party/rust/packed_simd/src/codegen/reductions/mask.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask.rs
648
--- third_party/rust/packed_simd/src/codegen/reductions/mask.rs
649
+++ third_party/rust/packed_simd/src/codegen/reductions/mask.rs
650
@@ -2,21 +2,21 @@
651
 //!
652
 //! Works around [LLVM bug 36702].
653
 //!
654
 //! [LLVM bug 36702]: https://bugs.llvm.org/show_bug.cgi?id=36702
655
 #![allow(unused_macros)]
656
 
657
 use crate::*;
658
 
659
-crate trait All: crate::marker::Sized {
660
+pub(crate) trait All: crate::marker::Sized {
661
     unsafe fn all(self) -> bool;
662
 }
663
 
664
-crate trait Any: crate::marker::Sized {
665
+pub(crate) trait Any: crate::marker::Sized {
666
     unsafe fn any(self) -> bool;
667
 }
668
 
669
 #[macro_use]
670
 mod fallback_impl;
671
 
672
 cfg_if! {
673
     if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
674
diff --git a/third_party/rust/packed_simd/src/codegen/swap_bytes.rs b/third_party/rust/packed_simd/src/codegen/swap_bytes.rs
675
--- third_party/rust/packed_simd/src/codegen/swap_bytes.rs
676
+++ third_party/rust/packed_simd/src/codegen/swap_bytes.rs
677
@@ -1,26 +1,26 @@
678
 //! Horizontal swap bytes reductions.
679
 
680
 // FIXME: investigate using `llvm.bswap`
681
 // https://github.com/rust-lang-nursery/packed_simd/issues/19
682
 
683
 use crate::*;
684
 
685
-crate trait SwapBytes {
686
+pub(crate) trait SwapBytes {
687
     fn swap_bytes(self) -> Self;
688
 }
689
 
690
 macro_rules! impl_swap_bytes {
691
     (v16: $($id:ident,)+) => {
692
         $(
693
             impl SwapBytes for $id {
694
                 #[inline]
695
                 fn swap_bytes(self) -> Self {
696
-                    unsafe { shuffle!(self, [1, 0]) }
697
+                    shuffle!(self, [1, 0])
698
                 }
699
             }
700
         )+
701
     };
702
     (v32: $($id:ident,)+) => {
703
         $(
704
             impl SwapBytes for $id {
705
                 #[inline]
706
diff --git a/third_party/rust/packed_simd/src/codegen/vPtr.rs b/third_party/rust/packed_simd/src/codegen/vPtr.rs
707
--- third_party/rust/packed_simd/src/codegen/vPtr.rs
708
+++ third_party/rust/packed_simd/src/codegen/vPtr.rs
709
@@ -1,16 +1,16 @@
710
 //! Pointer vector types
711
 
712
 macro_rules! impl_simd_ptr {
713
     ([$ptr_ty:ty; $elem_count:expr]: $tuple_id:ident | $ty:ident
714
      | $($tys:ty),*) => {
715
         #[derive(Copy, Clone)]
716
         #[repr(simd)]
717
-        pub struct $tuple_id<$ty>($(crate $tys),*);
718
+        pub struct $tuple_id<$ty>($(pub(crate) $tys),*);
719
         //^^^^^^^ leaked through SimdArray
720
 
721
         impl<$ty> crate::sealed::Seal for [$ptr_ty; $elem_count] {}
722
         impl<$ty> crate::sealed::SimdArray for [$ptr_ty; $elem_count] {
723
             type Tuple = $tuple_id<$ptr_ty>;
724
             type T = $ptr_ty;
725
             const N: usize = $elem_count;
726
             type NT = [u32; $elem_count];
727
diff --git a/third_party/rust/packed_simd/src/lib.rs b/third_party/rust/packed_simd/src/lib.rs
728
--- third_party/rust/packed_simd/src/lib.rs
729
+++ third_party/rust/packed_simd/src/lib.rs
730
@@ -206,14 +206,13 @@
731
     rustc_attrs,
732
     platform_intrinsics,
733
     stdsimd,
734
-    aarch64_target_feature,
735
     arm_target_feature,
736
     link_llvm_intrinsics,
737
     core_intrinsics,
738
     stmt_expr_attributes,
739
-    crate_visibility_modifier,
740
     custom_inner_attributes
741
 )]
742
+#![cfg_attr(aarch64_target_feature, feature(aarch64_target_feature))]
743
 #![allow(non_camel_case_types, non_snake_case,
744
         // FIXME: these types are unsound in C FFI already
745
         // See https://github.com/rust-lang/rust/issues/53346
746
@@ -334,6 +333,6 @@ pub use self::codegen::llvm::{
747
     __shuffle_vector4, __shuffle_vector64, __shuffle_vector8,
748
 };
749
 
750
-crate mod llvm {
751
-    crate use crate::codegen::llvm::*;
752
+pub(crate) mod llvm {
753
+    pub(crate) use crate::codegen::llvm::*;
754
 }
755
diff --git a/third_party/rust/packed_simd/src/testing.rs b/third_party/rust/packed_simd/src/testing.rs
756
--- third_party/rust/packed_simd/src/testing.rs
757
+++ third_party/rust/packed_simd/src/testing.rs
758
@@ -1,8 +1,8 @@
759
 //! Testing macros and other utilities.
760
 
761
 #[macro_use]
762
 mod macros;
763
 
764
 #[cfg(test)]
765
 #[macro_use]
766
-crate mod utils;
767
+pub(crate) mod utils;

Return to bug 265915