Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Aug 13, 2025

We only use the bytes-based functions now

Follow up to #5286

@Tpt Tpt added the CI-skip-changelog Skip checking changelog entry label Aug 13, 2025
@Tpt Tpt requested a review from davidhewitt August 13, 2025 09:10
/// `out` should be a buffer at the correct size of `combined_len(pieces)`, else this will panic.
#[cfg(mut_ref_in_const_fn)] // requires MSRV 1.83
#[allow(clippy::incompatible_msrv)] // `split_at_mut` also requires MSRV 1.83
pub const fn combine_bytes(pieces: &[&[u8]], mut out: &mut [u8]) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we need combine to be pub

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks, a welcome tidy up!

@davidhewitt davidhewitt added this pull request to the merge queue Aug 13, 2025
Merged via the queue into PyO3:main with commit 584b874 Aug 13, 2025
43 checks passed
Rafa-Gu98 pushed a commit to Rafa-Gu98/pyo3 that referenced this pull request Aug 14, 2025
…3#5315)

* Drop const_concat! macro and str-focused const combine functions

Follow up to PyO3#5286

* Makes combine not `pub`
@Tpt Tpt deleted the introspection-concat branch August 18, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants