Fail with length error in PlainOldULE, CharULE, etc. #1144
Labels
C-data-infra
Component: provider, datagen, fallback, adapters
S-small
Size: One afternoon (small bug fix or enhancement)
T-bug
Type: Bad behavior, security, privacy
Milestone
In these ULEs, we are not currently returning an error for ULE as the safety docs proposed in #1121 insist that we do. This is a bug that we need to fix now.
Question: What error type should we return in these two cases? I had proposed UleError with a special variant for length errors, but this was voted down in #1121. Currently, PlainOldULE is returning Infallible, and CharULE is returning CharTryFromError; clearly both of those will have to change.
Also add tests for this.
CC @Manishearth
The text was updated successfully, but these errors were encountered: