Skip to content

Implement core::error::Error for ParseError#132

Open
stevefan1999-personal wants to merge 3 commits into
bytecodealliance:mainfrom
stevefan1999-personal:patch-1
Open

Implement core::error::Error for ParseError#132
stevefan1999-personal wants to merge 3 commits into
bytecodealliance:mainfrom
stevefan1999-personal:patch-1

Conversation

@stevefan1999-personal

Copy link
Copy Markdown

No description provided.

Comment thread src/parse_error.rs

#[cfg(feature = "std")]
impl std::error::Error for ParseError {}
impl core::error::Error for ParseError {}

@bjorn3 bjorn3 Jun 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The MSRV is 1.34. core::error::Error doesn't exist until 1.81. You may need to add something like

target-lexicon/build.rs

Lines 55 to 57 in 2d53442

if using_1_40() {
println!("cargo:rustc-cfg=feature=\"rust_1_40\"");
}

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.

2 participants