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

run results of cargo --fix for edition 2021 #714

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

jimexist
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate parquet Changes to the parquet crate parquet-derive labels Aug 25, 2021
@jimexist jimexist mentioned this pull request Aug 25, 2021
@jimexist jimexist marked this pull request as ready for review August 25, 2021 08:23
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me -- thanks @jimexist

@alamb alamb merged commit 9d6ca6b into apache:master Aug 26, 2021
alamb pushed a commit that referenced this pull request Aug 26, 2021
@jimexist jimexist deleted the fix-edition branch August 26, 2021 14:43
@@ -36,7 +36,7 @@ pub unsafe trait NativeType:
}

macro_rules! create_native {
($native_ty:ty,$($impl_pattern:pat)|+) => {
($native_ty:ty,$($impl_pattern:pat_param)|+) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@alamb Either I have something misconfigured locally or this change breaks compilation with the version 1.52.1 configured in rust-toolchain:

error: invalid fragment specifier `pat_param`
  --> arrow/src/alloc/types.rs:39:22
   |
39 |     ($native_ty:ty,$($impl_pattern:pat_param)|+) => {
   |                      ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`

Copy link
Member Author

Choose a reason for hiding this comment

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

@alamb I think we need to somehow pin the rust toolchain

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Just noticed rust-toolchain file is not part of the repo and I only added that locally at some point. That means this was actually a problem on my side, arrow-rs requiring a newer version is totally fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jhorstmann -- I backported this change to the proposed arrow 5.3.0. Given your experience, I think I should probably undo that change and make a new 5.3.0 RC candidate.

@jimexist / @jhorstmann any thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's either that or you note in the release notes that the minimal support rust version is 1.53.

rust edition 2021 is likely land in rust 1.56. and given my understanding that arrow does not promise a specific back-compatible yet I feel like that users are supposed to upgrade to latest stable. but my understanding could be wrong.

Copy link
Contributor

Choose a reason for hiding this comment

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

arrow does not promise a specific back-compatible yet

I now also remember that discussion and agree with it. So from my perspective it is not necessary to revert this change.

We should probably write down this policy in the README if it is not already there yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

Proposed readme changes: #726

alamb added a commit that referenced this pull request Aug 26, 2021
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants