Skip to content

Commit fafa1c3

Browse files
committed
---
yaml --- r: 60859 b: refs/heads/auto c: b8a53b5 h: refs/heads/master i: 60857: 4fd6cfa 60855: f197e08 v: v3
1 parent 7d3c113 commit fafa1c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+1294
-354
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: 40b455792d441ef431dfb4de6bdfe082d104269b
17+
refs/heads/auto: b8a53b5a4cb594326ec90feb960d018e7ae23f2a
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/configure

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ then
561561
| cut -d ' ' -f 2)
562562

563563
case $CFG_CLANG_VERSION in
564-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3*)
564+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* )
565565
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
566566
CFG_C_COMPILER="clang"
567567
;;
@@ -970,6 +970,13 @@ then
970970
putvar CFG_CCACHE_CPP2
971971
fi
972972

973+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
974+
then
975+
CFG_CCACHE_BASEDIR=${CFG_SRC_DIR}
976+
putvar CFG_CCACHE_BASEDIR
977+
fi
978+
979+
973980
if [ ! -z $BAD_PANDOC ]
974981
then
975982
CFG_PANDOC=

branches/auto/doc/rust.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@ num_lit : nonzero_dec [ dec_digit | '_' ] * num_suffix ?
301301
num_suffix : int_suffix | float_suffix ;
302302
303303
int_suffix : 'u' int_suffix_size ?
304-
| 'i' int_suffix_size ;
304+
| 'i' int_suffix_size ? ;
305305
int_suffix_size : [ '8' | '1' '6' | '3' '2' | '6' '4' ] ;
306306
307-
float_suffix : [ exponent | '.' dec_lit exponent ? ] float_suffix_ty ? ;
307+
float_suffix : [ exponent | '.' dec_lit exponent ? ] ? float_suffix_ty ? ;
308308
float_suffix_ty : 'f' [ '3' '2' | '6' '4' ] ;
309309
exponent : ['E' | 'e'] ['-' | '+' ] ? dec_lit ;
310310
dec_lit : [ dec_digit | '_' ] + ;
@@ -2033,7 +2033,8 @@ as
20332033
=
20342034
~~~~
20352035

2036-
Operators at the same precedence level are evaluated left-to-right.
2036+
Operators at the same precedence level are evaluated left-to-right. [Unary operators](#unary-operator-expressions)
2037+
have the same precedence level and it is stronger than any of the binary operators'.
20372038

20382039
### Grouped expressions
20392040

branches/auto/mk/platform.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,11 @@ ifeq ($(CFG_CCACHE_CPP2),1)
396396
export CCACHE_CPP
397397
endif
398398

399+
ifdef CFG_CCACHE_BASEDIR
400+
CCACHE_BASEDIR=$(CFG_CCACHE_BASEDIR)
401+
export CCACHE_BASEDIR
402+
endif
403+
399404
define CFG_MAKE_TOOLCHAIN
400405
CFG_COMPILE_C_$(1) = $$(CC_$(1)) \
401406
$$(CFG_GCCISH_CFLAGS) \

branches/auto/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ TEST_GROUPS = \
666666
perf \
667667
debuginfo \
668668
doc \
669-
$(foreach docname,$(DOC_TEST_NAMES),$(docname)) \
669+
$(foreach docname,$(DOC_TEST_NAMES),doc-$(docname)) \
670670
pretty \
671671
pretty-rpass \
672672
pretty-rpass-full \

branches/auto/src/compiletest/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
9999
return false;
100100

101101
fn xfail_target() -> ~str {
102-
~"xfail-" + str::to_owned(os::SYSNAME)
102+
~"xfail-" + os::SYSNAME
103103
}
104104
}
105105
@@ -173,7 +173,7 @@ fn parse_name_directive(line: &str, directive: &str) -> bool {
173173

174174
fn parse_name_value_directive(line: &str,
175175
directive: ~str) -> Option<~str> {
176-
let keycolon = directive + ~":";
176+
let keycolon = directive + ":";
177177
match str::find_str(line, keycolon) {
178178
Some(colon) => {
179179
let value = str::slice(line, colon + str::len(keycolon),

branches/auto/src/compiletest/procsrv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
2424
let mut env = os::env();
2525

2626
// Make sure we include the aux directory in the path
27-
assert!(prog.ends_with(~".exe"));
28-
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ~".libaux";
27+
assert!(prog.ends_with(".exe"));
28+
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ".libaux";
2929

3030
env = do vec::map(env) |pair| {
3131
let (k,v) = *pair;
32-
if k == ~"PATH" { (~"PATH", v + ~";" + lib_path + ~";" + aux_path) }
32+
if k == ~"PATH" { (~"PATH", v + ";" + lib_path + ";" + aux_path) }
3333
else { (k,v) }
3434
};
3535
if str::ends_with(prog, "rustc.exe") {

branches/auto/src/compiletest/runtest.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
378378
was_expected = true;
379379
}
380380

381-
if !was_expected && is_compiler_error_or_warning(str::to_owned(line)) {
381+
if !was_expected && is_compiler_error_or_warning(line) {
382382
fatal_ProcRes(fmt!("unexpected compiler error or warning: '%s'",
383383
line),
384384
ProcRes);
@@ -596,8 +596,7 @@ fn make_lib_name(config: &config, auxfile: &Path, testfile: &Path) -> Path {
596596
}
597597

598598
fn make_exe_name(config: &config, testfile: &Path) -> Path {
599-
Path(output_base_name(config, testfile).to_str() +
600-
str::to_owned(os::EXE_SUFFIX))
599+
Path(output_base_name(config, testfile).to_str() + os::EXE_SUFFIX)
601600
}
602601

603602
fn make_run_args(config: &config, _props: &TestProps, testfile: &Path) ->
@@ -606,7 +605,7 @@ fn make_run_args(config: &config, _props: &TestProps, testfile: &Path) ->
606605
// then split apart its command
607606
let toolargs = split_maybe_args(&config.runtool);
608607

609-
let mut args = toolargs + ~[make_exe_name(config, testfile).to_str()];
608+
let mut args = toolargs + [make_exe_name(config, testfile).to_str()];
610609
let prog = args.shift();
611610
return ProcArgs {prog: prog, args: args};
612611
}
@@ -655,7 +654,7 @@ fn make_cmdline(_libpath: &str, prog: &str, args: &[~str]) -> ~str {
655654
#[cfg(target_os = "win32")]
656655
fn make_cmdline(libpath: &str, prog: &str, args: &[~str]) -> ~str {
657656
fmt!("%s %s %s", lib_path_cmd_prefix(libpath), prog,
658-
str::connect(args, ~" "))
657+
str::connect(args, " "))
659658
}
660659

661660
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line
@@ -776,8 +775,8 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
776775
for args.args.each |tv| {
777776
newcmd_out.push_str(" ");
778777
newcmd_err.push_str(" ");
779-
newcmd_out.push_str(tv.to_owned());
780-
newcmd_err.push_str(tv.to_owned());
778+
newcmd_out.push_str(*tv);
779+
newcmd_err.push_str(*tv);
781780
}
782781

783782
newcmd_out.push_str(" 2>/dev/null");

branches/auto/src/libextra/arc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
* ~~~
3838
*/
3939

40+
#[allow(missing_doc)];
41+
4042
use core::prelude::*;
4143

4244
use sync;

branches/auto/src/libextra/arena.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
// overhead when initializing plain-old-data and means we don't need
3333
// to waste time running the destructors of POD.
3434

35+
#[allow(missing_doc)];
36+
3537
use core::prelude::*;
3638

3739
use list::{MutList, MutCons, MutNil};

branches/auto/src/libextra/base64.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ use core::prelude::*;
1515
use core::str;
1616
use core::vec;
1717

18+
/// A trait for converting a value to base64 encoding.
1819
pub trait ToBase64 {
20+
/// Converts the value of `self` to a base64 value, returning the owned
21+
/// string
1922
fn to_base64(&self) -> ~str;
2023
}
2124

@@ -112,6 +115,7 @@ impl<'self> ToBase64 for &'self str {
112115
}
113116
}
114117

118+
#[allow(missing_doc)]
115119
pub trait FromBase64 {
116120
fn from_base64(&self) -> ~[u8];
117121
}

branches/auto/src/libextra/bitv.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,11 @@ enum BitvVariant { Big(~BigBitv), Small(~SmallBitv) }
211211

212212
enum Op {Union, Intersect, Assign, Difference}
213213

214-
// The bitvector type
214+
/// The bitvector type
215215
pub struct Bitv {
216+
/// Internal representation of the bit vector (small or large)
216217
rep: BitvVariant,
218+
/// The number of valid bits in the internal representation
217219
nbits: uint
218220
}
219221

branches/auto/src/libextra/dbg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
//! Unsafe debugging functions for inspecting values.
1212
13+
#[allow(missing_doc)];
14+
1315
use core::cast::transmute;
1416
use core::sys;
1517

branches/auto/src/libextra/deque.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use core::vec;
1818

1919
static initial_capacity: uint = 32u; // 2^5
2020

21+
#[allow(missing_doc)]
2122
pub struct Deque<T> {
2223
priv nelts: uint,
2324
priv lo: uint,

branches/auto/src/libextra/dlist.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ use core::vec;
2626

2727
pub type DListLink<T> = Option<@mut DListNode<T>>;
2828

29+
#[allow(missing_doc)]
2930
pub struct DListNode<T> {
3031
data: T,
3132
linked: bool, // for assertions
3233
prev: DListLink<T>,
3334
next: DListLink<T>,
3435
}
3536

37+
#[allow(missing_doc)]
3638
pub struct DList<T> {
3739
size: uint,
3840
hd: DListLink<T>,
@@ -106,6 +108,7 @@ pub fn from_elem<T>(data: T) -> @mut DList<T> {
106108
list
107109
}
108110

111+
/// Creates a new dlist from a vector of elements, maintaining the same order
109112
pub fn from_vec<T:Copy>(vec: &[T]) -> @mut DList<T> {
110113
do vec::foldl(DList(), vec) |list,data| {
111114
list.push(*data); // Iterating left-to-right -- add newly to the tail.

branches/auto/src/libextra/ebml.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(missing_doc)];
12+
1113
use core::prelude::*;
1214

1315
// Simple Extensible Binary Markup Language (ebml) reader and writer on a

branches/auto/src/libextra/fileinput.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ total line count).
9494
}
9595
*/
9696

97+
#[allow(missing_doc)];
98+
9799
use core::prelude::*;
98100

99101
use core::io::ReaderUtil;

branches/auto/src/libextra/flate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Simple compression
1414
1515
*/
1616

17+
#[allow(missing_doc)];
18+
1719
use core::prelude::*;
1820

1921
use core::libc::{c_void, size_t, c_int};

branches/auto/src/libextra/flatpipes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ block the scheduler thread, so will their pipes.
4747
4848
*/
4949

50+
#[allow(missing_doc)];
51+
5052
use core::prelude::*;
5153

5254
// The basic send/recv interface FlatChan and PortChan will implement

branches/auto/src/libextra/future.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* ~~~
2424
*/
2525

26+
#[allow(missing_doc)];
27+
2628
use core::prelude::*;
2729

2830
use core::cast;

branches/auto/src/libextra/getopts.rs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
* ```
7979
*/
8080

81+
#[allow(missing_doc)];
82+
8183
use core::prelude::*;
8284

8385
use core::cmp::Eq;
@@ -108,10 +110,11 @@ pub struct Opt {
108110
}
109111

110112
fn mkname(nm: &str) -> Name {
111-
let unm = str::to_owned(nm);
112-
return if nm.len() == 1u {
113-
Short(str::char_at(unm, 0u))
114-
} else { Long(unm) };
113+
if nm.len() == 1u {
114+
Short(str::char_at(nm, 0u))
115+
} else {
116+
Long(nm.to_owned())
117+
}
115118
}
116119

117120
/// Create an option that is required and takes an argument
@@ -193,19 +196,19 @@ pub enum Fail_ {
193196
pub fn fail_str(f: Fail_) -> ~str {
194197
return match f {
195198
ArgumentMissing(ref nm) => {
196-
~"Argument to option '" + *nm + "' missing."
199+
fmt!("Argument to option '%s' missing.", *nm)
197200
}
198201
UnrecognizedOption(ref nm) => {
199-
~"Unrecognized option: '" + *nm + "'."
202+
fmt!("Unrecognized option: '%s'.", *nm)
200203
}
201204
OptionMissing(ref nm) => {
202-
~"Required option '" + *nm + "' missing."
205+
fmt!("Required option '%s' missing.", *nm)
203206
}
204207
OptionDuplicated(ref nm) => {
205-
~"Option '" + *nm + "' given more than once."
208+
fmt!("Option '%s' given more than once.", *nm)
206209
}
207210
UnexpectedArgument(ref nm) => {
208-
~"Option " + *nm + " does not take an argument."
211+
fmt!("Option '%s' does not take an argument.", *nm)
209212
}
210213
};
211214
}
@@ -243,11 +246,11 @@ pub fn getopts(args: &[~str], opts: &[Opt]) -> Result {
243246
let mut names;
244247
let mut i_arg = None;
245248
if cur[1] == '-' as u8 {
246-
let tail = str::slice(cur, 2, curlen).to_owned();
249+
let tail = str::slice(cur, 2, curlen);
247250
let mut tail_eq = ~[];
248251
for str::each_splitn_char(tail, '=', 1) |s| { tail_eq.push(s.to_owned()) }
249252
if tail_eq.len() <= 1 {
250-
names = ~[Long(tail)];
253+
names = ~[Long(tail.to_owned())];
251254
} else {
252255
names =
253256
~[Long(copy tail_eq[0])];

branches/auto/src/libextra/io_util.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,24 @@
1111
use core::io::{Reader, BytesReader};
1212
use core::io;
1313

14+
/// An implementation of the io::Reader interface which reads a buffer of bytes
1415
pub struct BufReader {
16+
/// The buffer of bytes to read
1517
buf: ~[u8],
18+
/// The current position in the buffer of bytes
1619
pos: @mut uint
1720
}
1821

19-
pub impl BufReader {
22+
impl BufReader {
23+
/// Creates a new buffer reader for the specified buffer
2024
pub fn new(v: ~[u8]) -> BufReader {
2125
BufReader {
2226
buf: v,
2327
pos: @mut 0
2428
}
2529
}
2630

27-
priv fn as_bytes_reader<A>(&self, f: &fn(&BytesReader) -> A) -> A {
31+
fn as_bytes_reader<A>(&self, f: &fn(&BytesReader) -> A) -> A {
2832
// Recreating the BytesReader state every call since
2933
// I can't get the borrowing to work correctly
3034
let bytes_reader = BytesReader {

0 commit comments

Comments
 (0)