librust: Remove unnecessary workaround. Closes #7617