dtolnay/cxx

Figure out where to put #[inline]

Open

#146 创建于 2020年4月25日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Rust (4,472 star) (253 fork)batch import
help wanted

描述

In the Rust code generator we currently emit some shims that do nothing more than cast between smart pointers and raw pointers and then dispatch to the appropriate extern "C" function.

These shims should probably be marked #[inline] so that callers are able to directly call the extern "C" function themselves, but ideally I'd like at least one performance measurement showing a benefit before going forward with the change.

贡献者指南

Figure out where to put #[inline] · dtolnay/cxx#146 | Good First Issue