Bug: SeaMonkey 2.53.8.1 fails to compile with Rust 1.54
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2021-08-18 15:27:30+00:00
Resolved: 2021-08-18 23:54:47+00:00

SeaMonkey 2.53.8.1 doesn't compile with Rust 1.54.  The following error messages are emitted.  Probably the cause is the same as for Firefox Bug 1719674.

```
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:43:7
[  366s]    |
[  366s] 43 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:37:7
[  366s]    |
[  366s] 37 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:31:7
[  366s]    |
[  366s] 31 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:25:7
[  366s]    |
[  366s] 25 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:19:7
[  366s]    |
[  366s] 19 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  366s] error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
[  366s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:13:7
[  366s]    |
[  366s] 13 |     #[rustc_args_required_const(2)]
[  366s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  366s] 
[  367s] /usr/bin/g++ -o platform_thread_posix.o -c  -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/obj-x86_64-pc-linux-gnu/dist/system_wrappers -include /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DMOZ_ALSA -DNS_NO_XPCOM -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/security/sandbox/linux -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/obj-x86_64-pc-linux-gnu/security/sandbox/linux -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/security/sandbox/linux -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/security/sandbox/chromium-shim -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/security/sandbox/chromium -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/nsprpub -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/obj-x86_64-pc-linux-gnu/dist/include -I/usr/include/nspr4 -I/usr/include/nss3 -I/home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/obj-x86_64-pc-linux-gnu/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/obj-x86_64-pc-linux-gnu/mozilla-config.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-overflow=2 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fno-strict-aliasing -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O2 -fomit-frame-pointer -Wno-shadow  -MD -MP -MF .deps/platform_thread_posix.o.pp   /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/security/sandbox/chromium/base/threading/platform_thread_posix.cc
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:43:7
[  367s]    |
[  367s] 43 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:37:7
[  367s]    |
[  367s] 37 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:31:7
[  367s]    |
[  367s] 31 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:25:7
[  367s]    |
[  367s] 25 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:19:7
[  367s]    |
[  367s] 19 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
[  367s] error: cannot find attribute `rustc_args_required_const` in this scope
[  367s]   --> /home/abuild/rpmbuild/BUILD/seamonkey-2.53.8.1/mozilla/third_party/rust/packed_simd/src/codegen/llvm.rs:13:7
[  367s]    |
[  367s] 13 |     #[rustc_args_required_const(2)]
[  367s]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^
[  367s] 
```