You may have to specify a flag like "-C target-cpu=native" -- not all CPUs support popcnt, so LLVM can't generate it without knowing details about the target. I can't get the compiler on godbolt.org to generate it either way, though.
I actually wrote about it last week: http://tmccrmck.github.io//post/rust-optimization-partii/