light warning cleanup
auto merge of #6840 : cmr/rust/warns, r=catamorphism