librust: Remove unnecessary workaround. Closes #7617
auto merge of #9134 : luqmana/rust/i7617, r=alexcrichton