Mercurial > hg
view rust/chg/build.rs @ 43425:ed50f2c31a4c
rust-cpython: allow mutation unless leaked reference is borrowed
In other words, mutation is allowed while a Python iterator holding PyLeaked
exists. The iterator will be invalidated instead.
We still need a borrow_count to prevent mutation while leaked data is
dereferenced in Rust world, but most leak_count business is superseded by
the generation counter.
decrease_leak_count(py, true) will be removed soon.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 12 Oct 2019 20:26:38 +0900 |
parents | cd490ac908c0 |
children | 1f5ab1a9363d |
line wrap: on
line source
extern crate cc; fn main() { cc::Build::new() .warnings(true) .file("src/sendfds.c") .file("src/sighandlers.c") .compile("procutil"); }