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

feat(error): Error::source() is purposefully unspecified #3318

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

seanmonstar
Copy link
Member

Document that the exact types returned in the erased errors of Error::source() may change at any moment, and cannot be depended on.

Closes #2843

BREAKING CHANGE: Do not build any logic depending on the exact types of
an Error::source(). They are only for debugging.

Document that the exact types returned in the erased errors of
`Error::source()` may change at any moment, and cannot be depended on.

Closes #2843

BREAKING CHANGE: Do not build any logic depending on the exact types of
  an `Error::source()`. They are only for debugging.
@seanmonstar seanmonstar force-pushed the error-source-unspecified branch from d4adcc3 to 8b57016 Compare September 18, 2023 14:38
@seanmonstar seanmonstar merged commit 502a645 into master Sep 18, 2023
17 checks passed
@seanmonstar seanmonstar deleted the error-source-unspecified branch September 18, 2023 16:26
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
…3318)

Document that the exact types returned in the erased errors of
`Error::source()` may change at any moment, and cannot be depended on.

Closes hyperium#2843

BREAKING CHANGE: Do not build any logic depending on the exact types of
  an `Error::source()`. They are only for debugging.
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
…3318)

Document that the exact types returned in the erased errors of
`Error::source()` may change at any moment, and cannot be depended on.

Closes hyperium#2843

BREAKING CHANGE: Do not build any logic depending on the exact types of
  an `Error::source()`. They are only for debugging.

Signed-off-by: Sven Pfennig <[email protected]>
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.

Document that Error::source() types can not be depended on
1 participant