Skip to content

feat: add const_new feature for const ThinVec::new()#74

Open
ldm0 wants to merge 1 commit intomozilla:mainfrom
ldm0:const_new
Open

feat: add const_new feature for const ThinVec::new()#74
ldm0 wants to merge 1 commit intomozilla:mainfrom
ldm0:const_new

Conversation

@ldm0
Copy link

@ldm0 ldm0 commented Sep 11, 2025

This adds a new optional feature const_new that makes ThinVec::new() a const fn when enabled. The feature requires Rust 1.83 or later.

fixes #54

This adds a new optional feature `const_new` that makes `ThinVec::new()` a const fn when enabled. The feature requires Rust 1.83 or later.
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.

Make ThinVec::new constant

1 participant