Skip to content

Conversation

asomers
Copy link
Member

@asomers asomers commented Jul 24, 2021

Compute the required space at compile time rather than at runtime.

Compute the required space at compile time rather than at runtime.
@asomers
Copy link
Member Author

asomers commented Jul 24, 2021

So apparently stable compilers don't support this yet. rust-lang/rust#64926 .

@asomers asomers marked this pull request as draft July 24, 2021 22:39
@Jan561 Jan561 mentioned this pull request Nov 23, 2023
3 tasks
@asomers
Copy link
Member Author

asomers commented Jan 6, 2024

Rust and libc have advanced to the point where this PR could be completed. However, as that isn't possible. As explained in #2282 , there are cases where we can't compute cmsg_space at compile time, because of subtleties involving generics. Closing this PR.

@asomers asomers closed this Jan 6, 2024
@asomers asomers deleted the const_fn branch January 6, 2024 22:51
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.

1 participant