Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silence new rust 1.80 warnings #1048

Merged
merged 2 commits into from
Aug 5, 2024
Merged

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Aug 5, 2024

A new lint check was added[1] that makes sure all cfg values are checked. As such we must tell the compiler which values are valid so it doesn't flag them as unexpected.

[1] https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html#cargorustc-check-cfg-for-buildrsbuild-script

Copy link
Contributor

openshift-ci bot commented Aug 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 5, 2024
@Luap99
Copy link
Member Author

Luap99 commented Aug 5, 2024

@mheon @baude PTAL

@mheon
Copy link
Member

mheon commented Aug 5, 2024

LGTM

@baude
Copy link
Member

baude commented Aug 5, 2024

centos build is failing ... i'll lgtm it when we figure out how we're going to deal with that.

Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

Luap99 added 2 commits August 5, 2024 16:12
A new lint check was added[1] that makes sure all cfg values are checked.
As such we must tell the compiler which values are valid so it doesn't
flag them as unexpected.

[1] https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html#cargorustc-check-cfg-for-buildrsbuild-script

Signed-off-by: Paul Holzinger <[email protected]>
Signed-off-by: Paul Holzinger <[email protected]>
@Luap99
Copy link
Member Author

Luap99 commented Aug 5, 2024

centos build is failing ... i'll lgtm it when we figure out how we're going to deal with that.

They are unmaintained images that break over and over and over again bc they contain super outdated versions. We have packit build jobs now that should be much better so I say just remove it #1015

Anyhow in this case here I think I have to switch the syntax to the old one to keep working with some older versions

@baude
Copy link
Member

baude commented Aug 5, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 5, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 93a821a into containers:main Aug 5, 2024
29 checks passed
@Luap99 Luap99 deleted the rust-cfg branch August 5, 2024 18:25
@baude
Copy link
Member

baude commented Aug 16, 2024

/cherry-pick v1.12

@openshift-cherrypick-robot

@baude: new pull request created: #1064

In response to this:

/cherry-pick v1.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants