-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Broken compile with tracing-core 0.1.22 #270
Comments
It should be noted that this also breaks |
Hmm, that's...very surprising. The previous design of the |
We should probably skip those cases and do nothing. However, since this appears to be an accidental breaking change, the best solution is probably to revert it upstream. |
The problem was that since it was an |
In this case, I am fairly sure that the console is approximately the only code that matched on this type, since there should be no publicly accessible way for user code to actually get a Based on that, I've determined that in this case, the accidental breaking change probably has a very limited blast radius, because there's no actual reason for user code to actually match this type. So I'm going to fix this issue in the console rather than reverting the change upstream. |
The `tracing_core::metadata::Kind` type was not intended to be matched exhaustively, so that its internal representation could be changed without causing a breaking change. However, some fairly recent compiler changes broke this, and made the type exhaustively matched. This resulted in `tracing-core` 0.1.22 breaking `console-api`. This PR fixes the breakage by changing `console-api` to avoid exhaustively matching on `Kind`s. Fixes #270
The `tracing_core::metadata::Kind` type was not intended to be matched exhaustively, so that its internal representation could be changed without causing a breaking change. However, some fairly recent compiler changes broke this, and made the type exhaustively matched. This resulted in `tracing-core` 0.1.22 breaking `console-api`. This PR fixes the breakage by changing `console-api` to avoid exhaustively matching on `Kind`s. Fixes #270
Thanks for the quick fix here :) |
A recent change to
tracing-core
in tokio-rs/tracing#1891 which is used by recently releasedtracing
0.1.29 causes broken compiles due to Kind being changed to a u8 rather than an enum. Manually pinningtracing-core
to 0.1.21 fixes the issue.Happy to open a PR; how should we handle cases where the
tracing_core::metadata::Kind
is not covered? Maybe we should also use a u8 to match?The text was updated successfully, but these errors were encountered: