Skip to content

Commit 69c764f

Browse files
committed
---
yaml --- r: 207358 b: refs/heads/auto c: e7e1fd2 h: refs/heads/master v: v3
1 parent 60813bd commit 69c764f

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 3afd760bb3fc8c90adfd9451e1cd8b161301f218
13+
refs/heads/auto: e7e1fd20deb95f74c4a33c76921907e039dff894
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/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/auto/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)