Skip to content

Commit

Permalink
auto merge of #13122 : sstewartgallus/rust/cleanup-10734-workarounds,…
Browse files Browse the repository at this point in the history
… r=alexcrichton

Cleanup old issue references. One of these workarounds no longer need to be used anymore and the others are out of date.
  • Loading branch information
bors committed Mar 25, 2014
2 parents 5d5634a + ff2f2e8 commit 1f5571a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions src/libnum/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,22 +406,22 @@ 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() {
n = 2;
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;
}
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/libnum/rational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/librustc/back/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f5571a

Please sign in to comment.