-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Update docs for assert! and debug_assert! #35072
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
/// evaluated to `true` at runtime. | ||
/// This will ensure the termination of the program if the provided expression | ||
/// cannot be evaluated to `true` at runtime by means of an unrecoverable error | ||
/// (not necessarily a `panic!`, can also be an `abort`). |
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.
So, here's my one concern with this wording: it will always panic, the key is that panic can be either unwinding or abort. I would just stick to saying that this panics.
Thanks so much! I've left a few comments; this is a solid start, just some minor tweaks 😄 |
Thanks @steveklabnik, I've responded to each of your comments |
Looks fantastic, thank you so much! @bors: r+ rollup |
📌 Commit 9a7367b has been approved by |
My first merged PR to rust! 🎉 |
Update docs for assert! and debug_assert! Refer to rust-lang#34455
☔ The latest upstream changes (presumably #35100) made this pull request unmergeable. Please resolve the merge conflicts. |
Refer to #34455