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

[Ref] Remove unaligned constructors #1723

Merged
merged 1 commit into from
Sep 22, 2024
Merged

[Ref] Remove unaligned constructors #1723

merged 1 commit into from
Sep 22, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Sep 21, 2024

Closes #1720

@joshlf joshlf requested a review from jswrenn September 21, 2024 22:40
@joshlf
Copy link
Member Author

joshlf commented Sep 21, 2024

@jswrenn Feel free to review, but I'm going to hold off on merging until the Fuchsia vendor CL passes all of its CQ tests.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 88.11%. Comparing base (4426bb2) to head (376dab3).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/deprecated.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1723      +/-   ##
==========================================
- Coverage   88.61%   88.11%   -0.51%     
==========================================
  Files          16       16              
  Lines        5858     5720     -138     
==========================================
- Hits         5191     5040     -151     
- Misses        667      680      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshlf
Copy link
Member Author

joshlf commented Sep 21, 2024

@jswrenn Feel free to review, but I'm going to hold off on merging until the Fuchsia vendor CL passes all of its CQ tests.

Okay everything is passing other than asan tests, which are always flaky. I'm comfortable merging this. I'll mark as "merge when ready".

/// ```
#[must_use = "has no side effects"]
#[inline(always)]
pub fn unaligned_from_bytes(source: B) -> Result<Ref<B, T>, SizeError<B, T>> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should these be removals, or deprecations?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removals; they're new as of 0.8. We've already deprecated all of the 0.7 methods, which have a different naming scheme.

@joshlf joshlf added this pull request to the merge queue Sep 22, 2024
Merged via the queue into main with commit 2405a94 Sep 22, 2024
86 checks passed
@joshlf joshlf deleted the remove-unaligned branch September 22, 2024 15:08
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.

Test infallible alignment errors in Fuchsia, then remove Ref unaligned constructors
3 participants