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

for alignment errors, note that there might be false positives #1328

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Apr 13, 2020

Cc @shepmaster

error: Undefined Behavior: accessing memory with alignment 1, but alignment 8 is required
 --> tests/compile-fail/unaligned_pointers/alignment.rs:8:9
  |
8 |         *y_ptr = 42;
  |         ^^^^^^^^^^^ accessing memory with alignment 1, but alignment 8 is required
  |
  = help: this usually indicates that your program performed an invalid operation and caused Undefined Behavior
  = help: but alignment errors can also be false positives, see https://github.com/rust-lang/miri/issues/1074

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Apr 13, 2020

📌 Commit 75297d3 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Apr 13, 2020

⌛ Testing commit 75297d3 with merge fbbd442...

@bors
Copy link
Contributor

bors commented Apr 13, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing fbbd442 to master...

@bors bors merged commit fbbd442 into rust-lang:master Apr 13, 2020
@RalfJung RalfJung deleted the align-false-pos branch April 13, 2020 08:31
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