Skip to content

Commit 80bda1e

Browse files
committed
---
yaml --- r: 145710 b: refs/heads/try2 c: 3f32898 h: refs/heads/master v: v3
1 parent de225cb commit 80bda1e

File tree

22 files changed

+1163
-1095
lines changed

22 files changed

+1163
-1095
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fbd56396bc35aa65cf0a449d5073086aad2e61b9
8+
refs/heads/try2: 3f32898a7b78888b73c59db6def2dfea8a7b1931
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libextra/extra.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Rust extras are part of the standard Rust distribution.
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

2828
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
29-
html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
29+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
30+
html_root_url = "http://static.rust-lang.org/doc/master")];
3031

3132
#[comment = "Rust extras"];
3233
#[license = "MIT/ASL2"];

branches/try2/src/libextra/time.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ pub fn now() -> Tm {
174174
at(get_time())
175175
}
176176

177-
/// Parses the time from the string according to the format string.
178-
pub fn strptime(s: &str, format: &str) -> Result<Tm, ~str> {
179-
do_strptime(s, format)
180-
}
181-
182-
/// Formats the time according to the format string.
183-
pub fn strftime(format: &str, tm: &Tm) -> ~str {
184-
do_strftime(format, tm)
185-
}
186177

187178
impl Tm {
188179
/// Convert time to the seconds from January 1, 1970
@@ -264,7 +255,8 @@ impl Tm {
264255
}
265256
}
266257

267-
fn do_strptime(s: &str, format: &str) -> Result<Tm, ~str> {
258+
/// Parses the time from the string according to the format string.
259+
pub fn strptime(s: &str, format: &str) -> Result<Tm, ~str> {
268260
fn match_str(s: &str, pos: uint, needle: &str) -> bool {
269261
let mut i = pos;
270262
for ch in needle.byte_iter() {
@@ -733,7 +725,8 @@ fn do_strptime(s: &str, format: &str) -> Result<Tm, ~str> {
733725
}
734726
}
735727

736-
fn do_strftime(format: &str, tm: &Tm) -> ~str {
728+
/// Formats the time according to the format string.
729+
pub fn strftime(format: &str, tm: &Tm) -> ~str {
737730
fn days_in_year(year: int) -> i32 {
738731
if ((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) {
739732
366 /* Days in a leap year */

branches/try2/src/librustc/middle/astencode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,13 +880,13 @@ fn encode_side_tables_for_ii(ecx: &e::EncodeContext,
880880
// Because the ast visitor uses @IdVisitingOperation, I can't pass in
881881
// ecx directly, but /I/ know that it'll be fine since the lifetime is
882882
// tied to the CrateContext that lives throughout this entire section.
883-
ast_util::visit_ids_for_inlined_item(ii, @SideTableEncodingIdVisitor {
883+
ast_util::visit_ids_for_inlined_item(ii, &SideTableEncodingIdVisitor {
884884
ecx_ptr: unsafe {
885885
cast::transmute(ecx)
886886
},
887887
new_ebml_w: new_ebml_w,
888888
maps: maps,
889-
} as @ast_util::IdVisitingOperation);
889+
});
890890
ebml_w.end_tag();
891891
}
892892

0 commit comments

Comments
 (0)