File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 371371 clippy:: missing_safety_doc,
372372 clippy:: ptr_eq
373373) ]
374+ #![ warn(
375+ clippy:: alloc_instead_of_core,
376+ clippy:: std_instead_of_alloc,
377+ clippy:: std_instead_of_core
378+ ) ]
374379#![ warn( elided_lifetimes_in_paths, unused_lifetimes) ]
375380// This crate is a hand-maintained translation of CPython's headers, so requiring "unsafe"
376381// blocks within those translations increases maintenance burden without providing any
377382// additional safety. The safety of the functions in this crate is determined by the
378383// original CPython headers
379384#![ allow( unsafe_op_in_unsafe_fn) ]
380385
386+ #[ cfg( not( any( Py_3_14 , target_arch = "wasm32" ) ) ) ]
387+ extern crate std;
388+
381389// Until `extern type` is stabilized, use the recommended approach to
382390// model opaque types:
383391// https://doc.rust-lang.org/nomicon/ffi.html#representing-opaque-structs
You can’t perform that action at this time.
0 commit comments