Skip to content

Conversation

gonzalobg
Copy link
Contributor

The current documentation is not clear whether adding a to a pointer overaligns (align up) or underaligns (align down).

It should say this explicitly.

cc @nagisa

@rustbot
Copy link
Collaborator

rustbot commented Aug 27, 2025

r? @tgross35

rustbot has assigned @tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 27, 2025
@rustbot

This comment has been minimized.

@nagisa
Copy link
Member

nagisa commented Aug 27, 2025

Please squash commits into a one, thank you!

@gonzalobg
Copy link
Contributor Author

@nagisa please review again @hkBst suggestions. They LGTM.

@nagisa
Copy link
Member

nagisa commented Aug 28, 2025

Please squash and also address #145931 (comment)

The current documentation is not clear whether adding `a` to a pointer overaligns (align up) or underaligns (align down).

It should say this explicitly.
@gonzalobg
Copy link
Contributor Author

Squashed, thank you all!

@tgross35
Copy link
Contributor

r? nagisa

@rustbot rustbot assigned nagisa and unassigned tgross35 Aug 28, 2025
@nagisa
Copy link
Member

nagisa commented Aug 31, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 31, 2025

📌 Commit f29327f has been approved by nagisa

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 31, 2025
@nagisa
Copy link
Member

nagisa commented Aug 31, 2025

@bors rollup=always

bors added a commit that referenced this pull request Aug 31, 2025
Rollup of 4 pull requests

Successful merges:

 - #144443 (Make target pointer width in target json an integer)
 - #145174 (Ensure consistent drop for panicking drop in hint::select_unpredictable)
 - #145592 (Fix format string grammar in docs and improve alignment error message for #144023)
 - #145931 (Clarify that align_offset overaligns)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e3881cb into rust-lang:master Aug 31, 2025
10 checks passed
rust-timer added a commit that referenced this pull request Aug 31, 2025
Rollup merge of #145931 - gonzalobg:patch-1, r=nagisa

Clarify that align_offset overaligns

The current documentation is not clear whether adding `a` to a pointer overaligns (align up) or underaligns (align down).

It should say this explicitly.

cc `@nagisa`
@rustbot rustbot added this to the 1.91.0 milestone Aug 31, 2025
github-actions bot pushed a commit to rust-lang/compiler-builtins that referenced this pull request Sep 1, 2025
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#144443 (Make target pointer width in target json an integer)
 - rust-lang/rust#145174 (Ensure consistent drop for panicking drop in hint::select_unpredictable)
 - rust-lang/rust#145592 (Fix format string grammar in docs and improve alignment error message for rust-lang/rust#144023)
 - rust-lang/rust#145931 (Clarify that align_offset overaligns)

r? `@ghost`
`@rustbot` modify labels: rollup
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Sep 1, 2025
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#144443 (Make target pointer width in target json an integer)
 - rust-lang/rust#145174 (Ensure consistent drop for panicking drop in hint::select_unpredictable)
 - rust-lang/rust#145592 (Fix format string grammar in docs and improve alignment error message for rust-lang/rust#144023)
 - rust-lang/rust#145931 (Clarify that align_offset overaligns)

r? `@ghost`
`@rustbot` modify labels: rollup
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Sep 9, 2025
Clarify that align_offset overaligns

The current documentation is not clear whether adding `a` to a pointer overaligns (align up) or underaligns (align down).

It should say this explicitly.

cc `@nagisa`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants