return value/use extra::test::black_box in benchmarks
auto merge of #12212 : lpy/rust/issue12118, r=huonw

A try to fix #12118.
@huonw Could you please review that.