Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Remove deprecated Error::description #283

Conversation

AnderEnder
Copy link
Contributor

@AnderEnder AnderEnder commented Dec 16, 2019

Error::description has been documented as soft-deprecated since 1.27.0 (17 months ago). It is going to be hard-deprecated soon.

This PR:

  • Removes an implementation of description in impl ::std::error::Error
  • Cleanups description from foreign_link_variant
  • Increases minimal version to 1.27.0 in travis

Related PR: rust-lang/rust#66919

@AnderEnder AnderEnder force-pushed the remove-deprecated-error-description branch from 9b942bd to 2587bc9 Compare December 17, 2019 22:23
@AndyGauge
Copy link
Contributor

That's quite the leap in minimum supported rust. Do the tests fail on 1.13?

@AndyGauge
Copy link
Contributor

AndyGauge commented Dec 18, 2019

I dug into this and sure enough, with 1.41 release, our next breaking version would need to support 1.27 at minimum or error in compilation. An alternative option would be to https://crates.io/crates/rustversion conditionally compile the trait.

@AnderEnder
Copy link
Contributor Author

AnderEnder commented Dec 24, 2019

@AndyGauge, there is another option: to allow deprecated methods.

@AnderEnder
Copy link
Contributor Author

Closing in favour of #285

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants