Fixed compilation errors caused by rust-lang#17699