-
Notifications
You must be signed in to change notification settings - Fork 31
Work around an eager clippy warning #154
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
Conversation
✔️ Deploy Preview for dada-lang ready! 🔨 Explore the source changes: f3c6134 🔍 Inspect the deploy log: https://app.netlify.com/sites/dada-lang/deploys/6230b3bd8514e70008df2c27 😎 Browse the preview: https://deploy-preview-154--dada-lang.netlify.app |
This looks good. bors r+ |
154: Work around an eager clippy warning r=nikomatsakis a=lqd As seen in #152 (comment) and #153 (comment), it seems a recent nightly has introduced a false positive in the `needless_match` lint, causing CI to fail as it denies warnings. Just for reference, it looks side-effects in branches are missed, and thought to be replaceable by the matched Option. ```rust pub fn side_effect() -> Option<String> { if let Some(r) = op() { Some(r) } else { println!("side-effect"); None } } ``` We could ignore the lint, much like other lints are sometimes ignored, or work around it like this PR. Which do you prefer ? Co-authored-by: Rémy Rakic <[email protected]>
Build failed: |
That's quite a streak we got there, now an ICE on nightly, hitting issue 94998
|
This will be fixed in tomorrow's nightly |
ok :) |
bors r+ let's try again in case we're lucky |
154: Work around an eager clippy warning r=nikomatsakis a=lqd As seen in #152 (comment) and #153 (comment), it seems a recent nightly has introduced a false positive in the `needless_match` lint, causing CI to fail as it denies warnings. Just for reference, it looks side-effects in branches are missed, and thought to be replaceable by the matched Option. ```rust pub fn side_effect() -> Option<String> { if let Some(r) = op() { Some(r) } else { println!("side-effect"); None } } ``` We could ignore the lint, much like other lints are sometimes ignored, or work around it like this PR. Which do you prefer ? Co-authored-by: Rémy Rakic <[email protected]>
Build failed: |
Issues with GH and CI prevented the fix from landing yesterday. This will still fail for at least another few hours. Thankfully, the fix has landed by now. |
bors r+ |
Build succeeded:
|
As seen in #152 (comment) and #153 (comment), it seems a recent nightly has introduced a false positive in the
needless_match
lint, causing CI to fail as it denies warnings.Just for reference, it looks side-effects in branches are missed, and thought to be replaceable by the matched Option.
We could ignore the lint, much like other lints are sometimes ignored, or work around it like this PR. Which do you prefer ?