Skip to content

Commit cc5ebe1

Browse files
committed
Makefile: do not compile rust/download_web with old toolchain
socket crate became incompatible with Alpine 3.12 toolchain (rust 1.44) error[E0658]: `match` is not allowed in a `const fn` --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.0/src/lib.rs:156:9 | 156 | / match address { 157 | | SocketAddr::V4(_) => Domain::IPV4, 158 | | SocketAddr::V6(_) => Domain::IPV6, 159 | | } | |_________^ | = note: see issue #49146 <rust-lang/rust#49146> for more information
1 parent 4119d4c commit cc5ebe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ endif
8787
ifneq ($(call can-run,$(CARGO) --version),y)
8888
SUBDIRS_BLACKLIST += rust%
8989
else
90-
# Old versions of rustc (<=1.34) fail to build socket2-0.3.12 because:
91-
# error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
92-
# For more information about this error, try `rustc --explain E0658`.
9390
# Old versions of rustc (<=1.39) fail to build subtle-2.3.0 because:
9491
# error[E0210]: type parameter `T` must be used as the type parameter for some
9592
# local type (e.g., `MyStruct<T>`)
@@ -100,11 +97,14 @@ else
10097
# Old versions of rustc (<=1.42) fail to build object-0.23.0 because:
10198
# error[E0658]: subslice patterns are unstable
10299
# note: for more information, see https://github.com/rust-lang/rust/issues/62254
100+
# Old versions of rustc (<=1.44) fail to build socket2-0.4.0 because:
101+
# error[E0658]: `match` is not allowed in a `const fn`
102+
# Fnote: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
103103
ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-4]\)\.'),y)
104104
SUBDIRS_BLACKLIST += rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
105105
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-9]\)\.'),y)
106106
SUBDIRS_BLACKLIST += rust/check_linux_pass% rust/download_web%
107-
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(4[0-1]\)\.'),y)
107+
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(4[0-4]\)\.'),y)
108108
SUBDIRS_BLACKLIST += rust/download_web%
109109
endif
110110
endif

0 commit comments

Comments
 (0)