Skip to content

Commit

Permalink
make vec![,] uncompilable
Browse files Browse the repository at this point in the history
Fix regression introduced in commit #3ae2d21
  • Loading branch information
WaffleLapkin committed Apr 14, 2020
1 parent 3ae2d21 commit 2c23bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ macro_rules! vec {
($elem:expr; $n:expr) => (
$crate::vec::from_elem($elem, $n)
);
($($x:expr),* $(,)?) => (
<[_]>::into_vec(box [$($x),*])
($($x:expr),+ $(,)?) => (
<[_]>::into_vec(box [$($x),+])
);
}

Expand Down

0 comments on commit 2c23bd4

Please sign in to comment.