diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2021-10-21 12:43:31 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2021-10-25 08:49:19 +0000 |
commit | e0baedabf4e1cc6be9ece63dc78b1f43fd2bda78 (patch) | |
tree | 0cde5aede083c990001ddd0882df1a4ec2092312 | |
parent | fc2f1d2b164f4fca311e796b9bb3a78aa6dd4aa9 (diff) |
www/firefox-esr: Unbreak build with Rust 1.56.0
error[E0557]: feature has been removed
--> /wrkdirs/usr/ports/www/firefox-esr/work/firefox-78.15.0/third_party/rust/packed_simd/src/lib.rs:202:41
|
202 | #![cfg_attr(use_const_generics, feature(const_generics))]
| ^^^^^^^^^^^^^^ feature has been removed
|
= note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]`
http://package18.nyi.freebsd.org/data/122amd64-default-foo/2021-10-19_17h56m28s/logs/errors/firefox-esr-78.15.0_2,1.log
PR: 259251
-rw-r--r-- | www/firefox-esr/files/patch-rust-1.56.0 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-rust-1.56.0 b/www/firefox-esr/files/patch-rust-1.56.0 new file mode 100644 index 000000000000..ee6c90c02c69 --- /dev/null +++ b/www/firefox-esr/files/patch-rust-1.56.0 @@ -0,0 +1,21 @@ +error[E0557]: feature has been removed + --> /wrkdirs/usr/ports/www/firefox-esr/work/firefox-78.15.0/third_party/rust/packed_simd/src/lib.rs:202:41 + | +202 | #![cfg_attr(use_const_generics, feature(const_generics))] + | ^^^^^^^^^^^^^^ feature has been removed + | + = note: removed in favor of `#![feature(adt_const_params]` and `#![feature(generic_const_exprs)]` + +https://github.com/rust-lang/packed_simd/commit/45d5347a0d2187c046a546a477d2a53111cd7713 + +--- third_party/rust/packed_simd/src/lib.rs.orig 2021-10-21 12:39:34 UTC ++++ third_party/rust/packed_simd/src/lib.rs +@@ -199,7 +199,7 @@ + //! Numeric casts are not very "precise": sometimes lossy, sometimes value + //! preserving, etc. + +-#![cfg_attr(use_const_generics, feature(const_generics))] ++#![cfg_attr(use_const_generics, feature(adt_const_params))] + #![cfg_attr(use_const_generics, allow(incomplete_features, clippy::from_over_into))] + #![feature( + repr_simd, |