You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ark_std::error replaces core::error when not using std, but it winds up woefully inferior to the core::error behind #[feature(error_in_core)]. In particular ark_std::error::Error should've the downcast* methods on core::error::Error.
We should probably copy core::error to ark_std::error. Ain't much relevant in the real std::error anymore. If possible, we should detect #[feature(error_in_core)] or even nightly, so as to not replace core::error then.
Interestingly, there were never std::io references in std::error per se. It appears backtrace messed up moving std::error to core::error, but I've no idea why backtrace cannot work with just alloc, or be placed into an extension trait, or whatever.
The text was updated successfully, but these errors were encountered:
100% agree that we should switch to core::error, but as things stand this is not actionable, right? We need error_in_core to be stabilized first. I would prefer to avoid rust version detection, as that would involve a build.rs which worsens compile time.
I simply meant copy "more of" std::error from std into ark-std, specifically the <dyn Error>::downcast part.
I'll make @achimcc submit a PR for it if our auditors think error passing matters in ark-scale link above. We've correct error passing in the substrate host already, which maybe enough.
ark_std::error
replacescore::error
when not using std, but it winds up woefully inferior to thecore::error
behind#[feature(error_in_core)]
. In particularark_std::error::Error
should've thedowncast*
methods oncore::error::Error
.We should probably copy
core::error
toark_std::error
. Ain't much relevant in the realstd::error
anymore. If possible, we should detect#[feature(error_in_core)]
or even nightly, so as to not replacecore::error
then.Interestingly, there were never
std::io
references instd::error
per se. It appears backtrace messed up movingstd::error
tocore::error
, but I've no idea why backtrace cannot work with just alloc, or be placed into an extension trait, or whatever.The text was updated successfully, but these errors were encountered: