help wanted
仓库指标
- 星标
- (4,472 个星标)
- PR 合并指标
- (平均合并 8分钟) (30 天内合并 3 个 PR)
描述
We should sanitize where possible (function argument names) and produce diagnostics otherwise (function names, type names, field names).
mod ffi {
extern "C" {
// sanitize the variable name somehow instead of emitting invalid C++
fn f(operator: usize);
}
extern "Rust" {
// reject; ask the user to reimport the Rust fn under a different name
fn operator();
}
}
Currently the above all emit invalid C++ code, which is not nice.