Skip to content

Add has_capacity as a proxy for is_singleton#46

Merged
Gankra merged 1 commit intomozilla:mainfrom
Zoxc:has_cap
Dec 3, 2023
Merged

Add has_capacity as a proxy for is_singleton#46
Gankra merged 1 commit intomozilla:mainfrom
Zoxc:has_cap

Conversation

@Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Feb 27, 2023

This is useful since LLVM can omit the destructor if it knows !has_capacity(). It can be used to make rust-lang/rust#108359 cleaner.

@Gankra Gankra merged commit 1b79c91 into mozilla:main Dec 3, 2023
@Gankra
Copy link
Collaborator

Gankra commented Dec 3, 2023

published in 0.2.13

@Zoxc Zoxc deleted the has_cap branch December 7, 2023 14:25
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