Skip to content

Conversation

RalfJung
Copy link
Contributor

@dtolnay said

I would be open to a different thiserror PR that does not rewrite any of the macro, but just changes build.rs to detect when it is being built as a dependency of rustc (hopefully there is an environment variable or cfg for this) and permanently disables unstable functionality in that case.

This PR implements that.

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit 1f02cdf into dtolnay:master Aug 15, 2023
@dtolnay
Copy link
Owner

dtolnay commented Aug 15, 2023

Published in thiserror 1.0.46.

cuviper added a commit to cuviper/rust that referenced this pull request Aug 17, 2023
update `thiserror` to version >= 1.0.46

1.0.46 version is the one with [the workaround](dtolnay/thiserror#248) for rust-lang#114839. I'm also encountering this issue, so let's update the dependency so that everyone doesn't have to `./x clean`.

Fixes rust-lang#114839.

r? `@RalfJung`
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