Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More no-alloc #6166

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

More no-alloc #6166

wants to merge 7 commits into from

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Feb 20, 2025

icu_time, icu_decimal, icu_list

#6076

Manishearth
Manishearth previously approved these changes Feb 20, 2025
Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

hopefully VZCow isn't more expensive. It ought not be

@@ -130,6 +130,7 @@ struct EyepatchHackVector<U> {
/// This pointer is *always* valid, the reason it is represented as a raw pointer
/// is that it may logically represent an `&[T::ULE]` or the ptr,len of a `Vec<T::ULE>`
buf: NonNull<[U]>,
#[cfg(feature = "alloc")]
Copy link
Member

Choose a reason for hiding this comment

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

not: explicitly document behavior when not present

Copy link
Member Author

Choose a reason for hiding this comment

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

hm? there's no behaviour change, this is just always 0 in no-alloc

Copy link
Member

Choose a reason for hiding this comment

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

I understand, however this is unsafe code, we should be doubly clear about how things change. "This field is equivalent to 0 when disabled" is fine

Manishearth
Manishearth previously approved these changes Feb 20, 2025
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