Skip to content

Deprecate smallvec! and smallvec_inline! - #445

Merged
jdm merged 2 commits into
servo:v2from
bolshoytoster:v2
Aug 26, 2026
Merged

jdm merged 2 commits into
servo:v2from
bolshoytoster:v2

Conversation

@bolshoytoster

Copy link
Copy Markdown
Contributor

See #432 for details.

Comment thread src/lib.rs Outdated
($elem:expr; $n:expr) => ({
$crate::SmallVec::<_, $n>::from_buf([$elem; $n])
});
($($x:expr),+ $(,)?) => ({

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should change this to

($($($x:expr),+$(,)?)?) => ({

which is what the smallvec! macro allows

that way it removes having one possible comma with no elements as valid

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am convinced.

@jdm
jdm added this pull request to the merge queue Aug 26, 2026
Merged via the queue into servo:v2 with commit b974957 Aug 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants