Skip to content

Commit a25f340

Browse files
committed
---
yaml --- r: 225060 b: refs/heads/stable c: e7e1fd2 h: refs/heads/master v: v3
1 parent 1959c95 commit a25f340

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 3afd760bb3fc8c90adfd9451e1cd8b161301f218
32+
refs/heads/stable: e7e1fd20deb95f74c4a33c76921907e039dff894
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/liballoc/arc.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ impl<T: ?Sized> Drop for Arc<T> {
394394
// it's run more than once)
395395
let ptr = *self._ptr;
396396
// if ptr.is_null() { return }
397-
if ptr as usize == 0 || ptr as usize == mem::POST_DROP_USIZE { return }
397+
if ptr as *mut u8 as usize == 0 || ptr as *mut u8 as usize == mem::POST_DROP_USIZE {
398+
return
399+
}
398400

399401
// Because `fetch_sub` is already atomic, we do not need to synchronize
400402
// with other threads unless we are going to delete the object. This
@@ -524,7 +526,9 @@ impl<T: ?Sized> Drop for Weak<T> {
524526
let ptr = *self._ptr;
525527

526528
// see comments above for why this check is here
527-
if ptr as usize == 0 || ptr as usize == mem::POST_DROP_USIZE { return }
529+
if ptr as *mut u8 as usize == 0 || ptr as *mut u8 as usize == mem::POST_DROP_USIZE {
530+
return
531+
}
528532

529533
// If we find out that we were the last weak pointer, then its time to
530534
// deallocate the data entirely. See the discussion in Arc::drop() about

branches/stable/src/librustc_lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl LintPass for TypeLimits {
206206
let (min, max) = int_ty_range(int_type);
207207
let negative = self.negated_expr_id == e.id;
208208

209-
if (negative && v > (min.abs() as u64)) ||
209+
if (negative && v > min.wrapping_neg() as u64) ||
210210
(!negative && v > (max.abs() as u64)) {
211211
cx.span_lint(OVERFLOWING_LITERALS, e.span,
212212
&*format!("literal out of range for {:?}", t));

branches/stable/src/librustc_trans/trans/expr.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,8 +2048,9 @@ fn trans_imm_cast<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
20482048
} else { llsrc };
20492049
}
20502050

2051-
let _icx = push_ctxt("trans_cast"); let mut bcx = bcx; let ccx =
2052-
bcx.ccx();
2051+
let _icx = push_ctxt("trans_cast");
2052+
let mut bcx = bcx;
2053+
let ccx = bcx.ccx();
20532054

20542055
let t_in = expr_ty_adjusted(bcx, expr);
20552056
let t_out = node_id_type(bcx, id);

0 commit comments

Comments
 (0)