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

Override source in the Error impl #69

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

thomaseizinger
Copy link
Contributor

@thomaseizinger thomaseizinger commented Jun 24, 2022

I think this may not work with the current 1.12.0 MSRV but I wanted to open this anyway to start a discussion.

Without the source impl, the Error impl is not dramatically useful. All "modern" error handling libraries like anyhow operate on source.

New MSRV would be 1.37 with this change.

@thomaseizinger thomaseizinger changed the title Override source and backtrace in the Error impl Override source in the Error impl Jun 24, 2022
@cuviper
Copy link
Member

cuviper commented Jun 24, 2022

This does seem like a compelling reason to raise MSRV.

New MSRV would be 1.37 with this change.

Why 1.37? AFAICS source was stabilized in 1.30, then IMO we might as well choose 1.31 to get 2018 edition.

@thomaseizinger
Copy link
Contributor Author

New MSRV would be 1.37 with this change.

Why 1.37? AFAICS source was stabilized in 1.30, then IMO we might as well choose 1.31 to get 2018 edition.

I used cargo msrv but I can check again!

@thomaseizinger
Copy link
Contributor Author

You are right!

It got stabilised in 1.30.0: https://doc.rust-lang.org/src/std/error.rs.html#106

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.

Bring std::error::Error implementation up to latest version
2 participants