Skip to content

Commit a18dee6

Browse files
committed
Nits/Cleanups
1 parent d00d319 commit a18dee6

File tree

6 files changed

+14
-35
lines changed

6 files changed

+14
-35
lines changed

Cargo.lock

Lines changed: 2 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ rust-version = "1.65.0"
2020
[workspace]
2121
members = ['crates/cpp_smoke_test', 'crates/as-if-std']
2222
exclude = [
23-
'crates/without_debuginfo',
24-
'crates/macos_frames_test',
25-
'crates/line-tables-only',
26-
'crates/debuglink',
23+
'crates/without_debuginfo',
24+
'crates/macos_frames_test',
25+
'crates/line-tables-only',
26+
'crates/debuglink',
2727
]
2828

2929
[dependencies]
@@ -36,7 +36,7 @@ serde = { version = "1.0", optional = true, features = ['derive'] }
3636

3737
# Optionally demangle C++ frames' symbols in backtraces.
3838
cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = [
39-
"alloc",
39+
"alloc",
4040
] }
4141

4242
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]

src/backtrace/dbghelp32.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Frame {
9393
}
9494
}
9595

96-
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in winapi right now
96+
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in windows metadata right now
9797
struct MyContext(CONTEXT);
9898

9999
#[inline(always)]
@@ -176,7 +176,7 @@ pub unsafe fn trace(cb: &mut dyn FnMut(&super::Frame) -> bool) {
176176
};
177177

178178
while dbghelp.StackWalk64()(
179-
image as _,
179+
image as u32,
180180
process,
181181
thread,
182182
frame_ptr,

src/backtrace/dbghelp64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Frame {
4848
}
4949
}
5050

51-
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in winapi right now
51+
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in windows metadata right now
5252
struct MyContext(CONTEXT);
5353

5454
#[cfg(any(target_arch = "x86_64", target_arch = "arm64ec"))]

src/dbghelp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
//! said, `dbghelp.dll` almost always successfully loads on Windows.
1010
//!
1111
//! Note though that since we're loading all this support dynamically we can't
12-
//! actually use the raw definitions in `winapi`, but rather we need to define
12+
//! actually use the raw definitions in `windows_sys`, but rather we need to define
1313
//! the function pointer types ourselves and use that. We don't really want to
14-
//! be in the business of duplicating winapi, so we have a Cargo feature
15-
//! `verify-windows-sys` which asserts that all bindings match those in winapi and
14+
//! be in the business of duplicating auto-generated bindings, so we have a Cargo feature
15+
//! `verify-windows-sys` which asserts that all bindings match those in `windows_sys.rs` and
1616
//! this feature is enabled on CI.
1717
//!
1818
//! Finally, you'll note here that the dll for `dbghelp.dll` is never unloaded,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,6 @@ mod lock {
248248
not(target_vendor = "uwp")
249249
))]
250250
mod dbghelp;
251-
// Auto-generated by windows_bindgen in build.rs
251+
// Auto-generated by windows-bindgen/riddle
252252
#[cfg(windows)]
253253
mod windows_sys;

0 commit comments

Comments
 (0)