-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Add some rmeta instrumentation #137090
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
Add some rmeta instrumentation #137090
Conversation
|
@bors try |
Add some rmeta instrumentation r? ghost
rust-lang#137090 but with a different commit hash r? ghost
|
☀️ Try build successful - checks-actions |
| macro_rules! stat { | ||
| ($label:literal, $f:expr) => {{ | ||
| let orig_pos = self.position(); | ||
| $label.encode(&mut self.opaque); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe format!("<<{}>>", $label).encode(&mut self.opaque) to make it a bit clearer that it is a label rather than just a random string?
|
It makes sense to have this IMO. Needs a comment in the source code to explain why this exists though. |
|
My really cooked idea is to have a lot more of these markers but behind a compiler flag, so that you can spit out kind-of readable rmeta in an emergency |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
rust-lang#137090 but with a different commit hash r? ghost
rust-lang#137090 but with a different commit hash r? ghost
r? ghost