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

interpret: add read_machine_[ui]size convenience methods #105602

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

RalfJung
Copy link
Member

We have read_pointer, so it felt inconsistent to not also have these.

r? @oli-obk

@oli-obk
Copy link
Contributor

oli-obk commented Dec 12, 2022

@bors r+ rollup

yea, I've also been wondering about read_i32 and similar convenience methods recently. It comes up a lot with FFI

@RalfJung
Copy link
Member Author

Those are a bit less noisy due to not needing data layout access. But yeah we could have the entire suite of methods that we also have on Scalar I guess... if someone cares enough to add them all.

@RalfJung
Copy link
Member Author

@bors ping

None of the bots has reacted in this PR yet? There's no PR CI either. https://www.githubstatus.com/ is all green but I feel like that's just not reflecting the actual status...

@RalfJung RalfJung closed this Dec 21, 2022
@RalfJung RalfJung reopened this Dec 21, 2022
@RalfJung
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Dec 21, 2022

📌 Commit 1588944 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 21, 2022
fee1-dead added a commit to fee1-dead-contrib/rust that referenced this pull request Dec 21, 2022
interpret: add read_machine_[ui]size convenience methods

We have `read_pointer`, so it felt inconsistent to not also have these.

r? `@oli-obk`
fee1-dead added a commit to fee1-dead-contrib/rust that referenced this pull request Dec 21, 2022
interpret: add read_machine_[ui]size convenience methods

We have `read_pointer`, so it felt inconsistent to not also have these.

r? ``@oli-obk``
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 22, 2022
Rollup of 8 pull requests

Successful merges:

 - rust-lang#105584 (add assert messages if chunks/windows are length 0)
 - rust-lang#105602 (interpret: add read_machine_[ui]size convenience methods)
 - rust-lang#105824 (str.lines() docstring: clarify that line endings are not returned)
 - rust-lang#105980 (Refer to "Waker" rather than "RawWaker" in `drop` comment)
 - rust-lang#105986 (Fix typo in reading_half_a_pointer.rs)
 - rust-lang#105995 (Add regression test for rust-lang#96530)
 - rust-lang#106008 (Sort lint_groups in no_lint_suggestion)
 - rust-lang#106014 (Add comment explaining what the scrape-examples-toggle.goml GUI test is about)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 4f29ca3 into rust-lang:master Dec 22, 2022
@rustbot rustbot added this to the 1.68.0 milestone Dec 22, 2022
@RalfJung RalfJung deleted the read-convenience branch December 24, 2022 08:05
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
interpret: add read_machine_[ui]size convenience methods

We have `read_pointer`, so it felt inconsistent to not also have these.

r? ```@oli-obk```
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
Rollup of 8 pull requests

Successful merges:

 - rust-lang#105584 (add assert messages if chunks/windows are length 0)
 - rust-lang#105602 (interpret: add read_machine_[ui]size convenience methods)
 - rust-lang#105824 (str.lines() docstring: clarify that line endings are not returned)
 - rust-lang#105980 (Refer to "Waker" rather than "RawWaker" in `drop` comment)
 - rust-lang#105986 (Fix typo in reading_half_a_pointer.rs)
 - rust-lang#105995 (Add regression test for rust-lang#96530)
 - rust-lang#106008 (Sort lint_groups in no_lint_suggestion)
 - rust-lang#106014 (Add comment explaining what the scrape-examples-toggle.goml GUI test is about)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants