refactor(allocator): switch to non-deprecated stdlib error types#21260
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR updates the allocator shim to use std::alloc::LayoutError instead of the deprecated alias LayoutErr, and removes the file-level allowance for deprecated items.
Changes:
- Replace
LayoutErrwithLayoutErrorin imports and public method signatures. - Update
new_layout_err()to returnLayoutError. - Remove
#![allow(deprecated)]now that the deprecated alias is no longer used.
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
8d27f40 to
9f0b9fe
Compare
dc157cb to
64cb025
Compare

Use
LayoutErrorinstead of the deprecated aliasLayoutErr.