fix for latest rust nightly