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 rustc 1.77 issues and lints #442

Merged
merged 4 commits into from
Mar 26, 2024
Merged

Conversation

aspect
Copy link
Collaborator

@aspect aspect commented Mar 26, 2024

  • remove BorshSchema due to rustc 1.77 issues (BorshSchema is not used anywhere)
  • fix seal macro hash error (hash changed due to different whitespace processing in rustc 1.77)
  • fix all rustc 1.77 lints

This replicates #438 (unfortunately I can't merge this due to other lint errors, so if this merged #438 should be closed)

fix seal macro hash error due to rustc 1.77
fix all rustc 1.77 lints
@@ -56,7 +56,7 @@ impl std::fmt::Display for AccountId {
}
}

seal! { 0xa7a4, {
seal! { 0x544d, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since it only works with version 1.77 we have to introduce msrv equals 1.77 in manifest files

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

MSRV added: ad701e1


pub struct SessionReadGuard<'a>(RfRwLockReadGuard<'a>);
pub struct SessionReadGuard<'a>(pub RfRwLockReadGuard<'a>);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did this change occur due to inter?
If so I would suggest to suppress it instead of making the field public

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed: 319a624

michaelsutton
michaelsutton previously approved these changes Mar 26, 2024
michaelsutton
michaelsutton previously approved these changes Mar 26, 2024
coderofstuff
coderofstuff previously approved these changes Mar 26, 2024
@biryukovmaxim
Copy link
Collaborator

it doesn't work properly
the line
rust-version.workspace.workspace = true
should be added to all crates in the workspace in case of old compiler

@aspect aspect dismissed stale reviews from coderofstuff and michaelsutton via 467e4ce March 26, 2024 15:34
@aspect
Copy link
Collaborator Author

aspect commented Mar 26, 2024

it doesn't work properly the line rust-version.workspace.workspace = true should be added to all crates in the workspace in case of old compiler

propagated rust-version.workspace to all crates in 467e4ce

@aspect aspect merged commit 6fd7029 into kaspanet:master Mar 26, 2024
6 checks passed
@aspect aspect deleted the rust-1-77 branch March 26, 2024 16:16
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.

None yet

4 participants