Fix panic in cargo doc
with -Zfeatures=itarget
#8777
Merged
cargo doc
with -Zfeatures=itarget
#8777