-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
hmm, this function is marked as safe in the latest nightly https://doc.rust-lang.org/nightly/core/arch/wasm32/fn.unreachable.html |
Jan points out that it compiles with latest nightly: https://doc.rust-lang.org/nightly/core/arch/wasm32/fn.unreachable.html |
Please update your compiler. This code is also compiled by CI |
Do we want to only support the latest nightly compiler? We could keep the unsafe and have a warning suppression attribute in there, and that would increase the range of nightly compilers that people could use (with a comment to remove the suppression once it's 2022). At the moment this change is force upgrading everyone for not much reason. |
Yes |
No need to support any old nightlies. |
This is an issue I also see in |
FYI, the |
I'm having an issue again with running the benchmarks against westend, kusama and polkadot for Polkadot v0.9.12 due to this issue - that is based on the substrate
My preference right now would be the first option and simply apply this hotfix to the CC @bkchr maybe you can help? :) |
@s3krit Yes add the commit to the release branch. We should make CI build everything with stable in the near future. |
My compiler suggests that the unsafe blocks around the unsafe unreachable functions are mandatory.
They were removed recently in PR: #9637 so this is just putting them back.