-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Replace int/uint by isize/usize in libstd/thread.rs #22510
Replace int/uint by isize/usize in libstd/thread.rs #22510
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -805,13 +805,13 @@ mod test { | |||
} | |||
|
|||
fn avoid_copying_the_body<F>(spawnfn: F) where F: FnOnce(Thunk<'static>) { | |||
let (tx, rx) = channel::<uint>(); | |||
let (tx, rx) = channel::<usize>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can just as well be u32
Thanks! r=me with a squash Also feel free to comment on a PR whenever you update it because sadly github does not send out notifications otherwise. |
@alexcrichton: I think it can be merged now. Except if @aturon sees something else which needs to be changed ? |
Could you squash the commits together as well? |
Done ! |
@bors: r+ d708089 |
⌛ Testing commit d708089 with merge 54449c5... |
💔 Test failed - auto-linux-64-x-android-t |
@bors: retry |
⚡ Previous build results are reusable. Rebuilding only auto-linux-32-nopt-t, auto-linux-32-opt, auto-linux-64-nopt-t, auto-linux-64-opt, auto-linux-64-x-android-t, auto-mac-32-opt, auto-mac-64-nopt-t, auto-mac-64-opt, auto-win-32-nopt-t, auto-win-32-opt, auto-win-64-nopt-t, auto-win-64-opt... |
💔 Test failed - auto-win-32-nopt-t |
@bors: retry clean |
@bors: rollup |
I'm getting these errors in libstd:
Could you try to make sure |
@bors: r- |
Tests have been fixed. @alexcrichton @Manishearth |
@Manishearth This looks incorrect, it is casting a pointer to a |
Where? Can you file a followup bug or pull-request? |
You're talking about the change in the tests ? I didn't see that. Erf... Sorry about that... |
I'm working on it. |
Conflicts: src/libstd/thread.rs
Part of #22240.