ports/opt (3.6): rust: fix build with dead code lint
commit 49f3acdd096a548ed11a6e11f2175f20f09f1e62 Author: Danny Rawlins <contact@romster.me> Date: Sun Dec 5 14:05:24 2021 +1100 rust: fix build with dead code lint diff --git a/rust/.signature b/rust/.signature index 4ec4ea385..c2df4b40a 100644 --- a/rust/.signature +++ b/rust/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/aM5ql0thoj1g8l8FYVK3EvwYPPwMCRmwJ6ExEZH68VMwcV8kBqrPRGMw1EKAuQPwsZM7FgXikXDTzOCf3AP1gg= -SHA256 (Pkgfile) = e1f10b6cd4e31c2c7e21de97204f90905cdc5f4e29643a90895d7cdb98747a02 +RWSE3ohX2g5d/Xn8fGr9DrOasAmPmBnc8/4YrAnZiza6TKjeR9Wpb+bxlUQ4UcutLuO61h353Vak1KFSqoYRKqxHdb419vwSTQc= +SHA256 (Pkgfile) = 1ac8e439e6879b2b9cfb5d569f540f5e7d3bd106b597afa1f6372ff495597791 SHA256 (.footprint) = 6bc9aa7c6c8d99e7f8cdd6299da5d49ed7f626a414a97654104729ced44815a6 SHA256 (rustc-1.57.0-src.tar.xz) = fad07ea1daf9c6195c32e6e9c43ece4565c5f2f1de3c3771574790d6abbc9704 SHA256 (rust-std-1.56.1-x86_64-unknown-linux-gnu.tar.xz) = b01011cbb5503c456ecc6a557a38e099994b8497df545c661ce8fd48c5beadc6 diff --git a/rust/Pkgfile b/rust/Pkgfile index 01aece19a..f1efe0499 100644 --- a/rust/Pkgfile +++ b/rust/Pkgfile @@ -147,6 +147,11 @@ EOF export SCCACHE_IDLE_TIMEOUT='1500' fi + #error: field is never read: `id` + # --> src/bootstrap/lib.rs:280:5 + # = note: `-D dead-code` implied by `-D warnings` + RUSTFLAGS+=' -A dead_code' + export LIBGIT2_NO_PKG_CONFIG=1 export RUST_BACKTRACE=full /usr/bin/python3 ./x.py build --config="${SRC}"/config.toml -j ${JOBS-1}
participants (1)
-
crux@crux.nu