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

pallet-contracts: Fix compilation on latest nightly #2986

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jan 18, 2024

Apparently they changed detection for visibility identifiers on traits, which broke more than it should. There is an issue open: rust-lang/rust#119924 The easy solution for us is to move the declaration of the global variable outside of the trait.

Closes: #2960

Apparently they changed detection for visibility identifiers on traits,
which broke more than it should. There is an issue open: rust-lang/rust#119924
The easy solution for us is to move the declaration of the global
variable outside of the trait.

Closes: #2960
@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Jan 18, 2024
@bkchr bkchr requested a review from pgherveou January 18, 2024 13:51
@bkchr bkchr requested a review from athei as a code owner January 18, 2024 13:51
@bkchr bkchr requested a review from a team January 18, 2024 13:51
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

So its only important inside traits?
Since otherwise we should also change it here.

@athei athei added this pull request to the merge queue Jan 18, 2024
Merged via the queue into master with commit 0e124a0 Jan 18, 2024
133 of 135 checks passed
@athei athei deleted the bkchr-fix-compilation-nightly-contracts branch January 18, 2024 18:17
@bkchr
Copy link
Member Author

bkchr commented Jan 18, 2024

So its only important inside traits? Since otherwise we should also change it here.

Yes only in traits AFAIK.

@fmease
Copy link

fmease commented Jan 19, 2024

As the relevant rustc dev speaking, sorry for the inconvenience, I will fix this as soon as possible when time permits.

pmikolajczyk41 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Feb 21, 2024
Apparently they changed detection for visibility identifiers on traits,
which broke more than it should. There is an issue open:
rust-lang/rust#119924 The easy solution for us
is to move the declaration of the global variable outside of the trait.

Closes: paritytech#2960
(cherry picked from commit 0e124a0)
pmikolajczyk41 added a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Feb 21, 2024
smohan-dw pushed a commit to dhiway/substrate-sdk that referenced this pull request Mar 2, 2024
lesniak43 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Mar 18, 2024
lesniak43 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Mar 18, 2024
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
Apparently they changed detection for visibility identifiers on traits,
which broke more than it should. There is an issue open:
rust-lang/rust#119924 The easy solution for us
is to move the declaration of the global variable outside of the trait.

Closes: paritytech#2960
lesniak43 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Apr 8, 2024
lesniak43 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request Apr 22, 2024
lesniak43 pushed a commit to Cardinal-Cryptography/polkadot-sdk that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error when compiling Substrate node-template
5 participants