Fix 'make check-stage1-std' by correcting dependencies
Silence various warnings throughout test modules
auto merge of #6774 : alexcrichton/rust/silence-warnings, r=catamorphism

Also as a bonus this fixes #6767