Skip to content

Commit da548d2

Browse files
authored
Avoid suppressing panic messages (#2323)
* print `PanicInfo` using hook * update changelog
1 parent 6086694 commit da548d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153

154154
* Regex inputs are sanitized so alternation (`a|b`) is handled correctly but
155155
wildcard patterns (`*`) are now considered invalid.
156+
* the `ParseCallbacks`trait does not require to implement `UnwindSafe`.
156157

157158
## Removed
158159

bindgen-cli/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ pub fn main() {
4141
#[cfg(feature = "logging")]
4242
clang_version_check();
4343

44-
std::panic::set_hook(Box::new(move |_info| {
44+
std::panic::set_hook(Box::new(move |info| {
4545
if verbose {
4646
print_verbose_err()
4747
}
48+
println!("{}", info);
4849
}));
4950

5051
let bindings =

0 commit comments

Comments
 (0)