Skip to content

Make errors Copy#528

Merged
Manishearth merged 6 commits into
boa-dev:mainfrom
Manishearth:error-copy
Aug 30, 2025
Merged

Make errors Copy#528
Manishearth merged 6 commits into
boa-dev:mainfrom
Manishearth:error-copy

Conversation

@Manishearth

Copy link
Copy Markdown
Contributor

This implements the strategy somewhat discussed in unicode-org/icu4x#6904.

Previously, all allocated error messages from Temporal would not carry over FFI since we were reluctant to make the error type need a destructor.

TemporalError is now fully Copy, and can contain ICU4X/ixdtf errors. It is still converted to a string over FFI, which does not allocate. This leads to a minimal loss of information.

Work towards boa-dev#409

This moves the TimeZoneProvider trait to the timezone_provider crate.
There's a lot of stuff that gets moved as a result.

Some important things to note:

 - TimeZoneProvider now operates on its own IsoDateTime type
 - TimeZoneProvider produces UtcOffsetSeconds, not UtcOffsets
- the utils *mostly* got moved to timezone_provider::utils, but it's
doc(hidden).
@Manishearth Manishearth merged commit ed3f904 into boa-dev:main Aug 30, 2025
8 checks passed
@Manishearth Manishearth deleted the error-copy branch August 30, 2025 01:22
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