Feature gate trace_macros.

Fixes #11631
auto merge of #11842 : xales/rust/feature-gates, r=cmr

Fixes #11631