Skip to content

Commit a91b32f

Browse files
committed
---
yaml --- r: 85723 b: refs/heads/dist-snap c: 74b2d9e h: refs/heads/master i: 85721: ff2d081 85719: f17a8d0 v: v3
1 parent 5d4cb1b commit a91b32f

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 347943640e9ea1db18d5a7401c0b50a44544599d
9+
refs/heads/dist-snap: 74b2d9e19b2784aed009bd34aaeed43248944aca
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libextra/time.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ pub struct Tm {
121121
}
122122

123123
pub fn empty_tm() -> Tm {
124+
// 64 is the max size of the timezone buffer allocated on windows
125+
// in rust_localtime. In glibc the max timezone size is supposedly 3.
126+
let zone = str::with_capacity(64);
124127
Tm {
125128
tm_sec: 0_i32,
126129
tm_min: 0_i32,
@@ -132,7 +135,7 @@ pub fn empty_tm() -> Tm {
132135
tm_yday: 0_i32,
133136
tm_isdst: 0_i32,
134137
tm_gmtoff: 0_i32,
135-
tm_zone: ~"",
138+
tm_zone: zone,
136139
tm_nsec: 0_i32,
137140
}
138141
}

branches/dist-snap/src/libextra/uuid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ mod bench {
787787
pub fn parse_str(bh: &mut BenchHarness) {
788788
let s = "urn:uuid:F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4";
789789
do bh.iter {
790-
Uuid::parse_string(s);
790+
let u = Uuid::parse_string(s);
791791
}
792792
}
793793
}

branches/dist-snap/src/libstd/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ fn waitpid(pid: pid_t) -> int {
949949
#[cfg(test)]
950950
mod tests {
951951
use io;
952-
use libc::c_int;
952+
use libc::{c_int, uintptr_t};
953953
use option::{Option, None, Some};
954954
use os;
955955
use path::Path;

branches/dist-snap/src/rt/rust_builtin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void tm_to_rust_tm(tm* in_tm, rust_tm* out_tm, int32_t gmtoff,
292292

293293
if (zone != NULL) {
294294
size_t size = strlen(zone);
295-
reserve_vec_exact(&out_tm->tm_zone, size);
295+
assert(out_tm->tm_zone->alloc >= size);
296296
memcpy(out_tm->tm_zone->data, zone, size);
297297
out_tm->tm_zone->fill = size;
298298
}

0 commit comments

Comments
 (0)