Skip to content

Commit 6618b48

Browse files
committed
---
yaml --- r: 56379 b: refs/heads/auto c: b813d68 h: refs/heads/master i: 56377: 47f488f 56375: 8077c0f v: v3
1 parent c8f5615 commit 6618b48

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 212256b1a0c8bbe1d442d98afbf891b9ea33f13f
17+
refs/heads/auto: b813d68abe84e0e30c6138219a3f9f23e8f5d9de
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libcore/num/strconv.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ mod test {
655655
use option::*;
656656

657657
#[test]
658-
#[ignore(reason = "fails in x86")]
659658
fn from_str_ignore_underscores() {
660659
let s : Option<u8> = from_str_common("__1__", 2, false, false, false,
661660
ExpNone, false, true);
@@ -665,9 +664,9 @@ mod test {
665664
ExpNone, false, false);
666665
assert_eq!(n, None);
667666

668-
let f : Option<f32> = from_str_common("_1_._1_e_1_", 10, false, true, false,
667+
let f : Option<f32> = from_str_common("_1_._5_e_1_", 10, false, true, false,
669668
ExpDec, false, true);
670-
assert_eq!(f, Some(1.1e1f32));
669+
assert_eq!(f, Some(1.5e1f32));
671670
}
672671

673672
#[test]

branches/auto/src/rt/rust_task.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ rust_task : public kernel_owned<rust_task>
396396
void allow_yield();
397397
};
398398

399+
// FIXME (#2697): It would be really nice to be able to get rid of this.
400+
inline void *operator new[](size_t size, rust_task *task, const char *tag) {
401+
return task->malloc(size, tag);
402+
}
403+
404+
399405
template <typename T> struct task_owned {
400406
inline void *operator new(size_t size, rust_task *task,
401407
const char *tag) {

0 commit comments

Comments
 (0)