-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplify vec!
macro
#70949
simplify vec!
macro
#70949
Conversation
Simplify `vec!` macro by replacing 2 following branches: - `($($x:expr),*) => (...)` - `($($x:expr,)*) => (...)` with one: - `($($x:expr),* $(,)?) => (...)`
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Ugh. This PR brakes ui/vec/vec-macro-with-comma-only, making Should I change the branch pattern to |
Assigning semi-randomly.. |
We cannot do this due to the |
Couldn't we replace the |
Oh, I haven't noticed that
|
Fix regression introduced in commit #3ae2d21
@bors r+ rollup |
📌 Commit 2c23bd4 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#70657 (Allow `try`-blocks in places where an open delim is expected) - rust-lang#70947 (tighten CTFE safety net for accesses to globals) - rust-lang#70949 (simplify `vec!` macro) - rust-lang#71002 (fix target & runtool args order) - rust-lang#71082 (ptr: introduce len() method on raw slices) - rust-lang#71128 (Remove unused single_step flag) - rust-lang#71133 (Tighten time complexity on the doc of sort_by_key) - rust-lang#71135 (Update books) Failed merges: r? @ghost
Simplify
vec!
macro by replacing 2 following branches:($($x:expr),*) => (...)
($($x:expr,)*) => (...)
with one:
($($x:expr),* $(,)?) => (...)
This is a minor change, however, this will make the documentation cleaner