Silence various warnings

Remove uses of #[deny(deprecated_self)] and also remove a number of unused
imports for testing and not testing
syntax: Removing uses of HashMap
doc: Remove mentions of oldmap::HashMap
rustc: Remove uses of oldmap::HashMap
rustc: Purge of HashMap, fixing segfaulting cases

Various XXX comments added around to denote copies which when removed cause the
compiler to segfault at some point before stage2. None of these copies should
even be necessary.
test: Remove uses of oldmap::HashMap
Move ast_map::map to LinearMap
std: Remove the oldmap module