Skip to content

Commit aa56692

Browse files
committed
---
yaml --- r: 149994 b: refs/heads/try2 c: b1f5235 h: refs/heads/master v: v3
1 parent d4d3935 commit aa56692

File tree

19 files changed

+30
-76
lines changed

19 files changed

+30
-76
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: de78d7f56c0992e6f2cf1ec02e82d8efa2ffbac8
8+
refs/heads/try2: b1f523525a8ae906d82ef0dccf716aa3b0cd6670
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/doc/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ li {list-style-type: none; }
3030

3131
* [The `arena` allocation library](arena/index.html)
3232
* [The `collections` library](collections/index.html)
33+
* [The `extra` library of extra stuff](extra/index.html)
3334
* [The `flate` compression library](flate/index.html)
3435
* [The `fourcc` four-character code library](fourcc/index.html)
3536
* [The `getopts` argument parsing library](getopts/index.html)

branches/try2/src/libarena/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
#[crate_type = "rlib"];
2020
#[crate_type = "dylib"];
2121
#[license = "MIT/ASL2"];
22-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
23-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
24-
html_root_url = "http://static.rust-lang.org/doc/master")];
2522
#[allow(missing_doc)];
2623
#[feature(managed_boxes)];
2724
#[allow(deprecated_owned_vector)];

branches/try2/src/libcollections/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#[crate_type = "rlib"];
1717
#[crate_type = "dylib"];
1818
#[license = "MIT/ASL2"];
19-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
21-
html_root_url = "http://static.rust-lang.org/doc/master")];
2219

2320
#[feature(macro_rules, managed_boxes, default_type_params)];
2421

branches/try2/src/libflate/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ Simple compression
1818
#[crate_type = "rlib"];
1919
#[crate_type = "dylib"];
2020
#[license = "MIT/ASL2"];
21-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23-
html_root_url = "http://static.rust-lang.org/doc/master")];
2421

2522
use std::libc::{c_void, size_t, c_int};
2623
use std::libc;

branches/try2/src/libfourcc/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ fn main() {
4343
#[crate_type = "rlib"];
4444
#[crate_type = "dylib"];
4545
#[license = "MIT/ASL2"];
46-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
47-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
48-
html_root_url = "http://static.rust-lang.org/doc/master")];
4946

5047
#[feature(macro_registrar, managed_boxes)];
5148

branches/try2/src/libgetopts/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@
8080
#[crate_type = "rlib"];
8181
#[crate_type = "dylib"];
8282
#[license = "MIT/ASL2"];
83-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
84-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
85-
html_root_url = "http://static.rust-lang.org/doc/master")];
8683
#[allow(missing_doc)];
8784
#[allow(deprecated_owned_vector)];
8885

branches/try2/src/libglob/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#[crate_type = "rlib"];
2828
#[crate_type = "dylib"];
2929
#[license = "MIT/ASL2"];
30-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
31-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
32-
html_root_url = "http://static.rust-lang.org/doc/master")];
3330
#[allow(deprecated_owned_vector)];
3431

3532
use std::cell::Cell;

branches/try2/src/libhexfloat/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ fn main() {
4040
#[crate_type = "rlib"];
4141
#[crate_type = "dylib"];
4242
#[license = "MIT/ASL2"];
43-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
44-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
45-
html_root_url = "http://static.rust-lang.org/doc/master")];
4643

4744
#[feature(macro_registrar, managed_boxes)];
4845

branches/try2/src/libnum/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
#[crate_type = "rlib"];
1515
#[crate_type = "dylib"];
1616
#[license = "MIT/ASL2"];
17-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
18-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
19-
html_root_url = "http://static.rust-lang.org/doc/master")];
2017
#[allow(deprecated_owned_vector)];
2118

2219
extern crate rand;

branches/try2/src/libsemver/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
#[crate_type = "rlib"];
3333
#[crate_type = "dylib"];
3434
#[license = "MIT/ASL2"];
35-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
36-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
37-
html_root_url = "http://static.rust-lang.org/doc/master")];
3835

3936
#[allow(deprecated_owned_vector)];
4037

branches/try2/src/libserialize/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ Core encoding and decoding interfaces.
1818
#[crate_type = "rlib"];
1919
#[crate_type = "dylib"];
2020
#[license = "MIT/ASL2"];
21-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23-
html_root_url = "http://static.rust-lang.org/doc/master")];
2421
#[allow(missing_doc)];
2522
#[forbid(non_camel_case_types)];
2623
#[feature(macro_rules, managed_boxes, default_type_params)];

branches/try2/src/libstd/rt/libunwind.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extern "C" {
120120
// of the macro. This is all copy/pasted directly from the header file with the
121121
// definition of _Unwind_GetIP.
122122
#[cfg(target_os = "android")]
123-
#[cfg(target_os = "linux", target_arch = "arm")]
123+
#[cfg(target_os = "linux", target_os = "arm")]
124124
pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
125125
#[repr(C)]
126126
enum _Unwind_VRS_Result {
@@ -162,9 +162,9 @@ pub unsafe fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t {
162162
(val & !1) as libc::uintptr_t
163163
}
164164

165-
// This function also doesn't exist on android or arm/linux, so make it a no-op
165+
// This function also doesn't exist on android, so make it a no-op
166166
#[cfg(target_os = "android")]
167-
#[cfg(target_os = "linux", target_arch = "arm")]
168-
pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void {
167+
#[cfg(target_os = "linux", target_os = "arm")]
168+
pub unsafe fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void{
169169
pc
170170
}

branches/try2/src/libsync/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#[crate_type = "rlib"];
1717
#[crate_type = "dylib"];
1818
#[license = "MIT/ASL2"];
19-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
21-
html_root_url = "http://static.rust-lang.org/doc/master")];
2219

2320
#[allow(deprecated_owned_vector)];
2421

branches/try2/src/libtest/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#[license = "MIT/ASL2"];
2929
#[crate_type = "rlib"];
3030
#[crate_type = "dylib"];
31-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
32-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
33-
html_root_url = "http://static.rust-lang.org/doc/master")];
3431

3532
#[feature(asm, macro_rules)];
3633
#[allow(deprecated_owned_vector)];

branches/try2/src/libtime/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#[crate_type = "rlib"];
1313
#[crate_type = "dylib"];
1414
#[license = "MIT/ASL2"];
15-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
16-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
17-
html_root_url = "http://static.rust-lang.org/doc/master")];
1815

1916
#[allow(missing_doc)];
2017
#[allow(deprecated_owned_vector)];

branches/try2/src/liburl/lib.rs

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
#[crate_type = "rlib"];
1515
#[crate_type = "dylib"];
1616
#[license = "MIT/ASL2"];
17-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
18-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
19-
html_root_url = "http://static.rust-lang.org/doc/master")];
2017
#[feature(default_type_params)];
2118
#[allow(deprecated_owned_vector)];
2219

@@ -28,6 +25,7 @@ use std::hash::Hash;
2825
use std::io::BufReader;
2926
use std::from_str::FromStr;
3027
use std::uint;
28+
use std::vec_ng::Vec;
3129

3230
use collections::HashMap;
3331

@@ -45,7 +43,7 @@ use collections::HashMap;
4543
/// host: ~"example.com",
4644
/// port: Some(~"8080"),
4745
/// path: ~"/foo/bar",
48-
/// query: ~[(~"baz", ~"qux")],
46+
/// query: vec!((~"baz", ~"qux")),
4947
/// fragment: Some(~"quz") };
5048
/// // https://[email protected]:8080/foo/bar?baz=qux#quz
5149
/// ```
@@ -61,7 +59,7 @@ pub struct Url {
6159
port: Option<~str>,
6260
/// The path component of a URL, for example `/foo/bar`.
6361
path: ~str,
64-
/// The query component of a URL. `~[(~"baz", ~"qux")]` represents the
62+
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
6563
/// fragment `baz=qux` in the above example.
6664
query: Query,
6765
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
@@ -72,7 +70,7 @@ pub struct Url {
7270
pub struct Path {
7371
/// The path component of a URL, for example `/foo/bar`.
7472
path: ~str,
75-
/// The query component of a URL. `~[(~"baz", ~"qux")]` represents the
73+
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
7674
/// fragment `baz=qux` in the above example.
7775
query: Query,
7876
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
@@ -89,7 +87,7 @@ pub struct UserInfo {
8987
}
9088

9189
/// Represents the query component of a URI.
92-
pub type Query = ~[(~str, ~str)];
90+
pub type Query = Vec<(~str, ~str)>;
9391

9492
impl Url {
9593
pub fn new(scheme: ~str,
@@ -301,7 +299,7 @@ fn encode_plus(s: &str) -> ~str {
301299
/**
302300
* Encode a hashmap to the 'application/x-www-form-urlencoded' media type.
303301
*/
304-
pub fn encode_form_urlencoded(m: &HashMap<~str, ~[~str]>) -> ~str {
302+
pub fn encode_form_urlencoded(m: &HashMap<~str, Vec<~str>>) -> ~str {
305303
let mut out = ~"";
306304
let mut first = true;
307305

@@ -327,7 +325,7 @@ pub fn encode_form_urlencoded(m: &HashMap<~str, ~[~str]>) -> ~str {
327325
* Decode a string encoded with the 'application/x-www-form-urlencoded' media
328326
* type into a hashmap.
329327
*/
330-
pub fn decode_form_urlencoded(s: &[u8]) -> HashMap<~str, ~[~str]> {
328+
pub fn decode_form_urlencoded(s: &[u8]) -> HashMap<~str, Vec<~str>> {
331329
let mut rdr = BufReader::new(s);
332330
let mut m = HashMap::new();
333331
let mut key = ~"";
@@ -345,7 +343,7 @@ pub fn decode_form_urlencoded(s: &[u8]) -> HashMap<~str, ~[~str]> {
345343
if key != ~"" && value != ~"" {
346344
let mut values = match m.pop(&key) {
347345
Some(values) => values,
348-
None => ~[],
346+
None => vec!(),
349347
};
350348

351349
values.push(value);
@@ -383,7 +381,7 @@ pub fn decode_form_urlencoded(s: &[u8]) -> HashMap<~str, ~[~str]> {
383381
if key != ~"" && value != ~"" {
384382
let mut values = match m.pop(&key) {
385383
Some(values) => values,
386-
None => ~[],
384+
None => vec!(),
387385
};
388386

389387
values.push(value);
@@ -430,7 +428,7 @@ impl fmt::Show for UserInfo {
430428
}
431429

432430
fn query_from_str(rawquery: &str) -> Query {
433-
let mut query: Query = ~[];
431+
let mut query: Query = vec!();
434432
if !rawquery.is_empty() {
435433
for p in rawquery.split('&') {
436434
let (k, v) = split_char_first(p, '=');
@@ -446,7 +444,7 @@ fn query_from_str(rawquery: &str) -> Query {
446444
* # Example
447445
*
448446
* ```rust
449-
* let query = ~[(~"title", ~"The Village"), (~"north", ~"52.91"), (~"west", ~"4.10")];
447+
* let query = vec!((~"title", ~"The Village"), (~"north", ~"52.91"), (~"west", ~"4.10"));
450448
* println!("{}", url::query_to_str(&query)); // title=The%20Village&north=52.91&west=4.10
451449
* ```
452450
*/
@@ -712,9 +710,9 @@ fn get_query_fragment(rawurl: &str) ->
712710
let f = decode_component(rawurl.slice(
713711
1,
714712
rawurl.len()));
715-
return Ok((~[], Some(f)));
713+
return Ok((vec!(), Some(f)));
716714
} else {
717-
return Ok((~[], None));
715+
return Ok((vec!(), None));
718716
}
719717
}
720718
let (q, r) = split_char_first(rawurl.slice(1, rawurl.len()), '#');
@@ -956,7 +954,7 @@ fn test_get_path() {
956954
957955
#[cfg(test)]
958956
mod tests {
959-
use {encode_form_urlencoded, decode_form_urlencoded, decode_component,
957+
use {encode_form_urlencoded, decode_form_urlencoded,
960958
decode, encode, from_str, encode_component, decode_component,
961959
path_from_str, UserInfo, get_scheme};
962960
@@ -973,7 +971,7 @@ mod tests {
973971
assert_eq!(&u.host, &~"rust-lang.org");
974972
assert_eq!(&u.port, &Some(~"8080"));
975973
assert_eq!(&u.path, &~"/doc/~u");
976-
assert_eq!(&u.query, &~[(~"s", ~"v")]);
974+
assert_eq!(&u.query, &vec!((~"s", ~"v")));
977975
assert_eq!(&u.fragment, &Some(~"something"));
978976
}
979977
@@ -984,7 +982,7 @@ mod tests {
984982
let up = path_from_str(path);
985983
let u = up.unwrap();
986984
assert_eq!(&u.path, &~"/doc/~u");
987-
assert_eq!(&u.query, &~[(~"s", ~"v")]);
985+
assert_eq!(&u.query, &vec!((~"s", ~"v")));
988986
assert_eq!(&u.fragment, &Some(~"something"));
989987
}
990988
@@ -1124,15 +1122,15 @@ mod tests {
11241122
let url = ~"http://rust-lang.org/doc%20uments?ba%25d%20=%23%26%2B";
11251123
let u = from_str(url).unwrap();
11261124
assert!(u.path == ~"/doc uments");
1127-
assert!(u.query == ~[(~"ba%d ", ~"#&+")]);
1125+
assert!(u.query == vec!((~"ba%d ", ~"#&+")));
11281126
}
11291127
11301128
#[test]
11311129
fn test_path_component_encoding() {
11321130
let path = ~"/doc%20uments?ba%25d%20=%23%26%2B";
11331131
let p = path_from_str(path).unwrap();
11341132
assert!(p.path == ~"/doc uments");
1135-
assert!(p.query == ~[(~"ba%d ", ~"#&+")]);
1133+
assert!(p.query == vec!((~"ba%d ", ~"#&+")));
11361134
}
11371135
11381136
#[test]
@@ -1259,16 +1257,16 @@ mod tests {
12591257
let mut m = HashMap::new();
12601258
assert_eq!(encode_form_urlencoded(&m), ~"");
12611259
1262-
m.insert(~"", ~[]);
1263-
m.insert(~"foo", ~[]);
1260+
m.insert(~"", vec!());
1261+
m.insert(~"foo", vec!());
12641262
assert_eq!(encode_form_urlencoded(&m), ~"");
12651263
12661264
let mut m = HashMap::new();
1267-
m.insert(~"foo", ~[~"bar", ~"123"]);
1265+
m.insert(~"foo", vec!(~"bar", ~"123"));
12681266
assert_eq!(encode_form_urlencoded(&m), ~"foo=bar&foo=123");
12691267
12701268
let mut m = HashMap::new();
1271-
m.insert(~"foo bar", ~[~"abc", ~"12 = 34"]);
1269+
m.insert(~"foo bar", vec!(~"abc", ~"12 = 34"));
12721270
assert!(encode_form_urlencoded(&m) ==
12731271
~"foo+bar=abc&foo+bar=12+%3D+34");
12741272
}
@@ -1280,7 +1278,7 @@ mod tests {
12801278
let s = "a=1&foo+bar=abc&foo+bar=12+%3D+34".as_bytes();
12811279
let form = decode_form_urlencoded(s);
12821280
assert_eq!(form.len(), 2);
1283-
assert_eq!(form.get(&~"a"), &~[~"1"]);
1284-
assert_eq!(form.get(&~"foo bar"), &~[~"abc", ~"12 = 34"]);
1281+
assert_eq!(form.get(&~"a"), &vec!(~"1"));
1282+
assert_eq!(form.get(&~"foo bar"), &vec!(~"abc", ~"12 = 34"));
12851283
}
12861284
}

branches/try2/src/libuuid/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ Examples of string representations:
5858
#[crate_type = "rlib"];
5959
#[crate_type = "dylib"];
6060
#[license = "MIT/ASL2"];
61-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
62-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
63-
html_root_url = "http://static.rust-lang.org/doc/master")];
6461

6562
#[allow(deprecated_owned_vector)];
6663

branches/try2/src/libworkcache/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
#[crate_type = "rlib"];
1313
#[crate_type = "dylib"];
1414
#[license = "MIT/ASL2"];
15-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
16-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
17-
html_root_url = "http://static.rust-lang.org/doc/master")];
1815
#[allow(deprecated_owned_vector, visible_private_types)];
1916

2017
extern crate serialize;

0 commit comments

Comments
 (0)