feat+refactor: Bump MSRV to 1.83.0 and maximize const #294
feat+refactor: Bump MSRV to 1.83.0 and maximize const #294Daniel-Aaron-Bloom wants to merge 5 commits intobluss:masterfrom
1.83.0 and maximize const #294Conversation
const1.83.0 and maximize const
|
What's your motivation for this pull request? This currently raises the MSRV quite substantially, so it should have a good motivation, at the very least. |
|
I made this crate, and doing that was my motivation. The summary is: now that For now I've just forked this crate as |
|
Do you think this would be better served via a feature-flag? |
|
I would love if we could have something like this 👍 , honestly sooner rather than later as it blocks downstream libraries. 1.83 marks a huge shift in whats possible in A minimal version of this that would be sufficient for libraries would be a
|
|
I've created #296 as an alternative to this with the changes under the feature flag Instead of |
|
Something interesting for this PR might be the crate It would however add a dependency on a proc-macro crate. |
|
Just chiming in with my use case for this, would love to see this landed in some form 🤩 I want to create structures at compile time which contains ArrayVec. I then use &'static references to these structures and use them throughout my game. Currently, I've solved this by using a slice instead. But I would have preferred to be able to use ArrayVec as I already have a helper structure for this particular array: Moveset Huge thanks to op for putting this together 🙌 |
Find every
fnwhich can beconst(as of1.83.0) and make it so. This involved moving all the implementations out of theArrayVecImpltrait, which eventually left it unused, so I removed it.You could probably also remove
MakeMaybeUninitand just havenew_constcallnewif you wanted to.