Skip to content

refactor: rename the main generic parameters - #749

Merged
alejandro-vaz merged 1 commit into
servo:v2from
GauravPawar101:rename-generics-731
Oct 8, 2026
Merged

alejandro-vaz merged 1 commit into
servo:v2from
GauravPawar101:rename-generics-731

Conversation

@GauravPawar101

Copy link
Copy Markdown
Contributor

T becomes Item, N becomes INLINE and A becomes Heap (#731).

The local guard in extract_if is now Guard and the Eq bound is inlined, both because the longer names overflow rustfmt's 100 columns. The encase macro hard-codes its element parameter as T, so that call keeps it.

T becomes Item, N becomes INLINE and A becomes Heap (servo#731).

The local guard in extract_if is now Guard and the Eq bound is
inlined, both because the longer names overflow rustfmt's 100
columns. The encase macro hard-codes its element parameter as T,
so that call keeps it.

@alejandro-vaz alejandro-vaz left a comment

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.

insanely big PR

haven't reviewed this line by line but I'll assume it's fine since CI is happy

@alejandro-vaz
alejandro-vaz added this pull request to the merge queue Oct 8, 2026
Merged via the queue into servo:v2 with commit ea4e400 Oct 8, 2026
8 checks passed
@GauravPawar101
GauravPawar101 deleted the rename-generics-731 branch October 8, 2026 15:14
@pedrodesu

Copy link
Copy Markdown
Contributor

I have a problem with the new name of A: It's called Heap. This is an incorrect assumption. A must only interface with Allocator, not necessarily be what we call "the heap"; For instance, if A is used on bare-metal, or any system that doesn't have the notion of heap for that matter, or under a (probably self-defeating, but totally possible) stack-allocating allocator.

@alejandro-vaz

Copy link
Copy Markdown
Collaborator

hahaha brother you could have said it before

okay, go suggest a better name

discussion on #731

@pedrodesu

Copy link
Copy Markdown
Contributor

I didn't see #731, in fact I only noticed this here now because another commit started conflicting.
I'll go there, thanks

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