Closed sharkcz closed 2 months ago
This seems to be triggered by unused_qualifications
here as the error message indicates:
https://github.com/ibm-s390-linux/s390-tools/blob/54e5e99657b3f1eb433954e0ed19c93a3bc561c6/rust/pv_core/src/lib.rs#L4-L11
I'm not sure if we really want this. Per default this is an "allow" lint but we've put it into deny. This is really just a style issue but due to the deny list is causing an error. There is no actual programming issue.
I'll discuss with @steffen-eiden how we'll go about it.
The difference between the two builds is that Rawhide defines --cap-lints=warn
for the rustc
buildflags. This keeps all lints at a warn-level. To have a general solution, @steffen-eiden will provide a fix and set the lints mentioned above to warn-level instead of "deny". Deny is too aggressive.
@frank-heimes @ngueorguiev fyi
Seems like older rustc versions did not found this lint-issue -> our build test did not find this lint. A fix is on the way.
FYI:
sizeof
is in the prelude since rustc 1.80 -> the lint fires for 1.80+
Thanks, we can build again. And if I understand right, then you will keep code as it is, so it can be built with rust < 1.80, right?
I am getting a build failure in the rust code on ELN (on all arches), but not in Rawhide. I suspect it's somehow related to rust compiler flags as both builds use Rust 1.80.1 and generally the buildroot is almost identical.
Please see eg. https://koji.fedoraproject.org/koji/taskinfo?taskID=121961756 for the complete logs. And see eg. https://koji.fedoraproject.org/koji/taskinfo?taskID=121842128 (Rawhide) for comparison.