-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add common macros to TRPL #24516
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 common macros to TRPL #24516
Conversation
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
takes two values and compares them. Truth passes, success `panic!`s. Like | ||
this: | ||
|
||
```rust,ignore |
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.
Could these be tagged with no_run
instead of ignore
wherever possible?
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.
👍
@alexcrichton updated! |
⌛ Testing commit b4dc187 with merge a0369bd... |
This macro causes the current thread to panic. You can give it a message | ||
to panic with: | ||
|
||
```rust,ignore |
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.
why ignore
here but no_run
elsewhere?
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.
you're right, this can be no_run too
oh, huh |
@bors: r=alexcrichton rollup |
📌 Commit 1e29abe has been approved by |
Fixes #22621