Work around an ICE due to autoderef.

This is a workaround for rust-lang/rust#17810.