Ignore doc directory.
Fix compile with HEAD rust, and rust-empty.