-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Add basic doc examples for std::panic::{set_hook, take_hook}.
#36390
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
Conversation
src/libstd/panicking.rs
Outdated
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.
Might want to stay away from the word "catch" here.
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.
"Encountered"?
30587c8 to
0c3d290
Compare
|
@GuillaumeGomez Added an example for |
|
Euh... Compiling rustc_metadata v0.0.0 (file:///build/src/librustc_metadata)
error[E0282]: unable to infer enough type information about `_`
--> src/librustc_metadata/decoder.rs:358:25
|
358 | predicates: (0..self.read_usize()?).map(|_| {
| ^ cannot infer type for `_`
|
= note: type annotations or generic parameter binding required
error: aborting due to previous errorI restart travis. |
1dc4db1 to
ee5f602
Compare
|
@GuillaumeGomez Tests are passing now. |
std::panic::set_hook.std::panic::{set_hook, take_hook}.
ee5f602 to
5505ebc
Compare
|
Great, thanks! @bors: r+ rollup |
|
📌 Commit 5505ebc has been approved by |
Add basic doc examples for `std::panic::{set_hook, take_hook}`.
None
No description provided.