It seems the current documentation of xmas-elf is affected by: https://github.com/rust-lang/docs.rs/issues/190 AFAICT releasing a new version should fix this issue for the xmas-elf crate since the newer rustdocs do not have the bug anymore.