Skip to content

Remove RustItem::AllocGlobal#2145

Open
elanortang wants to merge 8 commits intomainfrom
remove-alloc-global
Open

Remove RustItem::AllocGlobal#2145
elanortang wants to merge 8 commits intomainfrom
remove-alloc-global

Conversation

@elanortang
Copy link
Collaborator

@elanortang elanortang commented Feb 6, 2026

This PR removes RustItem::AllocGlobal and associated dead code, as well as RustItem::Allocator.

In total, 31 tests now need a vstd import to bring in Global (due to a use of Box). The breakdown is as follows:

  • adts: 5
  • external_type_specification: 1 (plus fixes to the test type_recursion_is_handled itself)
  • match: 4
  • recursion: 4
  • recursive_types: 13
  • regression: 1
  • traits: 2
  • traits_dyn: 1

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Copy link
Collaborator

@parno parno left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me.

@elanortang
Copy link
Collaborator Author

@Chris-Hawblitzel Would you be able to run a Veritas-style check, to see if anyone is relying on the current Global special treatment?

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.

2 participants