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

fix(libflux): build on rust 1.78 #5484

Merged
merged 2 commits into from
May 24, 2024
Merged

fix(libflux): build on rust 1.78 #5484

merged 2 commits into from
May 24, 2024

Conversation

mhilton
Copy link
Contributor

@mhilton mhilton commented May 24, 2024

Fix compiler errors and clippy lints produced when attempting to build using rust 1.78.

Closes #5479

Checklist

Dear Author 👋, the following checks should be completed (or explicitly dismissed) before merging.

  • ✏️ Write a PR description, regardless of triviality, to include the value of this PR
  • 🔗 Reference related issues
  • 🏃 Test cases are included to exercise the new code
  • 🧪 If new packages are being introduced to stdlib, link to Working Group discussion notes and ensure it lands under experimental/
  • 📖 If language features are changing, ensure docs/Spec.md has been updated

Dear Reviewer(s) 👋, you are responsible (among others) for ensuring the completeness and quality of the above before approval.

Fix compiler errors and clippy lints produced when attempting to
build using rust 1.78.
@mhilton mhilton requested a review from a team as a code owner May 24, 2024 15:13
@@ -1,6 +1,7 @@
[package]
name = "flux-core"
version = "0.154.0"
rust-version = "1.68"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errrrrrrrr this says 1.68 but the PR title says 1.78?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OH WAIT this is msrv isn't it, i thought i was looking at rust-toolchain.toml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version that we build with (from rust-toolchain.toml) is 1.68. I didn't really want to change that. As I understand it this sets the minimum supported version for the crate. Though we build with 1.68 it seems others are building influxdb with newer versions (#5479) so we want to support those too.

Copy link

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine, one question/suggestion, but it's probably my lack of context so I'm approving it regardless

fn into_type(self) -> MonoType;
fn error(&self, error: Error) -> Self::Error;
#[allow(dead_code)]
fn location(&self) -> crate::ast::SourceLocation;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to keep these methods around in the trait definition if they're not used anywhere? I have zero context for this trait, so feel free to ignore me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly because I didn't want to mess with the code any more than I have to. I don't really know much about how this library works, other than it having a scarily brittle build process for interfacing with the go part of the system.

@mhilton mhilton merged commit 68c831c into master May 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build issue with rust 1.78
2 participants