MCPcopy Index your code
hub / github.com/RustPython/RustPython / _read_null

Function _read_null

crates/stdlib/src/faulthandler.rs:1188–1198  ·  view source on GitHub ↗
(_vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1186
1187 #[pyfunction]
1188 fn _read_null(_vm: &VirtualMachine) {
1189 #[cfg(not(target_arch = "wasm32"))]
1190 {
1191 suppress_crash_report();
1192
1193 unsafe {
1194 let ptr: *const i32 = core::ptr::null();
1195 core::ptr::read_volatile(ptr);
1196 }
1197 }
1198 }
1199
1200 #[derive(FromArgs)]
1201 #[allow(dead_code)]

Callers

nothing calls this directly

Calls 1

suppress_crash_reportFunction · 0.85

Tested by

no test coverage detected