Squash test ~[] warning

The use of `std::os::args` creates a deprecated_owned_vector warning
with a bogus span.
auto merge of #12927 : sfackler/rust/test-warn, r=huonw

The use of `std::os::args` creates a deprecated_owned_vector warning
with a bogus span.