Skip to content

Commit 70c3c27

Browse files
committed
---
yaml --- r: 232645 b: refs/heads/try c: 9f227ca h: refs/heads/master i: 232643: a1aa6d8 v: v3
1 parent 1acc550 commit 70c3c27

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 64fcf3b1a6a75e6cc1438589dbd8594c5c799b74
4+
refs/heads/try: 9f227ca2c2150205fcc39d7a3b1839eb592baee0
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_data_structures/transitive_relation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<T:Debug+PartialEq> TransitiveRelation<T> {
110110
/// (there are corresponding tests below, btw). In each case,
111111
/// the query is `postdom_upper_bound(a, b)`:
112112
///
113-
/// ```
113+
/// ```text
114114
/// // returns Some(x), which is also LUB
115115
/// a -> a1 -> x
116116
/// ^

branches/try/src/librustc_trans/trans/base.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,11 @@ pub fn memcpy_ty<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
964964
t: Ty<'tcx>) {
965965
let _icx = push_ctxt("memcpy_ty");
966966
let ccx = bcx.ccx();
967+
968+
if type_is_zero_size(ccx, t) {
969+
return;
970+
}
971+
967972
if t.is_structural() {
968973
let llty = type_of::type_of(ccx, t);
969974
let llsz = llsize_of(ccx, llty);

branches/try/src/libstd/num/f64.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,11 @@ impl f64 {
454454
#[stable(feature = "rust1", since = "1.0.0")]
455455
#[inline]
456456
pub fn sqrt(self) -> f64 {
457-
unsafe { intrinsics::sqrtf64(self) }
457+
if self < 0.0 {
458+
NAN
459+
} else {
460+
unsafe { intrinsics::sqrtf64(self) }
461+
}
458462
}
459463

460464
/// Returns `e^(self)`, (the exponential function).

0 commit comments

Comments
 (0)