MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / use_static_assertions

Function use_static_assertions

build.rs:200–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200fn use_static_assertions() -> bool {
201 // `offset_from` was made const in Rust 1.65.
202 can_compile("const unsafe fn foo(p: *const u8) -> isize { p.offset_from(p) }")
203}
204
205fn use_thumb_mode() -> bool {
206 // In thumb mode, r7 is reserved.

Callers 1

mainFunction · 0.85

Calls 1

can_compileFunction · 0.85

Tested by

no test coverage detected