Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upstabilized compiler_fences (fixes #41091) #44595
Conversation
rust-highfive
assigned
sfackler
Sep 15, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @sfackler (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
Thanks! Maybe the docs could move to the function? |
This comment has been minimized.
This comment has been minimized.
I've translated part of the unstable-book article into an example. I'm not sure if it didn't came out forced. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Hmm, I think I would argue for more of the text from the unstable book to be incorporated into the documentation for |
alexcrichton
added
the
S-waiting-on-bors
label
Sep 15, 2017
This comment has been minimized.
This comment has been minimized.
alexcrichton
added
S-waiting-on-author
and removed
S-waiting-on-bors
labels
Sep 15, 2017
This comment has been minimized.
This comment has been minimized.
@alexcrichton Gladly! Although I might not have time to approach it this weekend.
@jonhoo I've originally omitted these paragraphs as these convey the same message as current docs present above
I'm not sure about linking to C++ reference but I would prefer not to point to StackOverflow, leaving only the linux kernel link. |
budziq
added some commits
Sep 15, 2017
budziq
force-pushed the
budziq:stabilize_compiler_fences
branch
from
571941b
to
5f62c0c
Sep 16, 2017
This comment has been minimized.
This comment has been minimized.
|
I've updated the docs with the best I could come up with :) |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
LGTM |
TimNN
added a commit
to TimNN/rust
that referenced
this pull request
Sep 17, 2017
bors
added a commit
that referenced
this pull request
Sep 17, 2017
TimNN
added a commit
to TimNN/rust
that referenced
this pull request
Sep 17, 2017
bors
added a commit
that referenced
this pull request
Sep 17, 2017
TimNN
added a commit
to TimNN/rust
that referenced
this pull request
Sep 17, 2017
bors
added a commit
that referenced
this pull request
Sep 17, 2017
bors
merged commit 5f62c0c
into
rust-lang:master
Sep 17, 2017
1 check passed
budziq
deleted the
budziq:stabilize_compiler_fences
branch
Sep 17, 2017
nalply
reviewed
Sep 21, 2017
| The way it is currently written, the `assert_eq!` is *not* guaranteed to | ||
| succeed, despite everything happening in a single thread. To see why, | ||
| remember that the compiler is free to swap the stores to | ||
| `IMPORTANT_VARIABLE` and `IS_READ` since they are both |
budziq commentedSep 15, 2017
•
edited
I did not know what to proceed with "unstable-book" entry. The feature would no longer be unstable so I have deleted it. If it was the wrong call I'll revert it (unfortunately his case is not described in the CONTRIBUTING.md).