std: make vec!() macro handle a trailing comma

Fixes #12910.
auto merge of #13278 : lifthrasiir/rust/vec-macro-with-trailing-comma, r=alexcrichton

Fixes #12910.