diff options
| author | bors <bors@rust-lang.org> | 2014-03-25 06:36:55 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-25 06:36:55 -0700 |
| commit | 1f5571abc222520537daa00fc8256040647eec86 (patch) | |
| tree | 46909ab43c534f14d82a8971200611597b2653ba | |
| parent | 5d5634ace087addc6f1d09b55643f97162a4f031 (diff) | |
| parent | ff2f2e839e92f402c51a19acc262c9100c3f4ce1 (diff) | |
| download | rust-1f5571abc222520537daa00fc8256040647eec86.tar.gz rust-1f5571abc222520537daa00fc8256040647eec86.zip | |
auto merge of #13122 : sstewartgallus/rust/cleanup-10734-workarounds, r=alexcrichton
Cleanup old issue references. One of these workarounds no longer need to be used anymore and the others are out of date.
| -rw-r--r-- | src/libnum/bigint.rs | 17 | ||||
| -rw-r--r-- | src/libnum/rational.rs | 4 | ||||
| -rw-r--r-- | src/librustc/back/archive.rs | 2 |
3 files changed, 11 insertions, 12 deletions
diff --git a/src/libnum/bigint.rs b/src/libnum/bigint.rs index 89ad2b5d1bc..50d72663ce8 100644 --- a/src/libnum/bigint.rs +++ b/src/libnum/bigint.rs @@ -406,11 +406,11 @@ impl Integer for BigUint { let mut d0 = d0; let mut prod = b * d0; while prod > m { - // FIXME(#6050): overloaded operators force moves with generic types + // FIXME(#5992): assignment operator overloads // d0 -= d_unit d0 = d0 - d_unit; - // FIXME(#6050): overloaded operators force moves with generic types - // prod = prod - b_unit; + // FIXME(#5992): assignment operator overloads + // prod -= b_unit; prod = prod - b_unit } if d0.is_zero() { @@ -418,10 +418,10 @@ impl Integer for BigUint { continue; } n = 1; - // FIXME(#6102): Assignment operator for BigInt causes ICE + // FIXME(#5992): assignment operator overloads // d += d0; d = d + d0; - // FIXME(#6102): Assignment operator for BigInt causes ICE + // FIXME(#5992): assignment operator overloads // m -= prod; m = m - prod; } @@ -724,8 +724,7 @@ impl BigUint { let d: Option<BigUint> = FromPrimitive::from_uint(d); match d { Some(d) => { - // FIXME(#6102): Assignment operator for BigInt - // causes ICE: + // FIXME(#5992): assignment operator overloads // n += d * power; n = n + d * power; } @@ -738,7 +737,7 @@ impl BigUint { return Some(n); } end -= unit_len; - // FIXME(#6050): overloaded operators force moves with generic types + // FIXME(#5992): assignment operator overloads // power *= base_num; power = power * base_num; } @@ -2068,7 +2067,7 @@ mod biguint_tests { fn factor(n: uint) -> BigUint { let mut f: BigUint = One::one(); for i in range(2, n + 1) { - // FIXME(#6102): Assignment operator for BigInt causes ICE + // FIXME(#5992): assignment operator overloads // f *= FromPrimitive::from_uint(i); f = f * FromPrimitive::from_uint(i).unwrap(); } diff --git a/src/libnum/rational.rs b/src/libnum/rational.rs index 6fb3d492432..bea003bcf18 100644 --- a/src/libnum/rational.rs +++ b/src/libnum/rational.rs @@ -87,10 +87,10 @@ impl<T: Clone + Integer + Ord> fn reduce(&mut self) { let g : T = self.numer.gcd(&self.denom); - // FIXME(#6050): overloaded operators force moves with generic types + // FIXME(#5992): assignment operator overloads // self.numer /= g; self.numer = self.numer / g; - // FIXME(#6050): overloaded operators force moves with generic types + // FIXME(#5992): assignment operator overloads // self.denom /= g; self.denom = self.denom / g; diff --git a/src/librustc/back/archive.rs b/src/librustc/back/archive.rs index 33b79b213d2..f12a2e5a761 100644 --- a/src/librustc/back/archive.rs +++ b/src/librustc/back/archive.rs @@ -91,7 +91,7 @@ impl<'a> Archive<'a> { pub fn read(&self, file: &str) -> Vec<u8> { // Apparently if "ar p" is used on windows, it generates a corrupt file // which has bad headers and LLVM will immediately choke on it - if cfg!(windows) && cfg!(windows) { // FIXME(#10734) double-and + if cfg!(windows) { let loc = TempDir::new("rsar").unwrap(); let archive = os::make_absolute(&self.dst); run_ar(self.sess, "x", Some(loc.path()), [&archive, |
