Skip to content

Commit e726595

Browse files
committed
---
yaml --- r: 92322 b: refs/heads/auto c: b1b905f h: refs/heads/master v: v3
1 parent 9593a3c commit e726595

File tree

192 files changed

+553
-751
lines changed

Some content is hidden

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

192 files changed

+553
-751
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: ebbd30b5b2699c3f16a3387ed0851a2831076295
16+
refs/heads/auto: b1b905f30b3d9b124f87780e63f279dad071d721
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/configure

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ then
469469
PV_MINOR=${PV_MAJOR_MINOR#* }
470470
if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
471471
then
472-
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473-
BAD_PANDOC=1
472+
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473+
BAD_PANDOC=1
474474
fi
475475
fi
476476

@@ -544,24 +544,12 @@ then
544544
putvar CFG_ENABLE_CLANG
545545
fi
546546

547+
547548
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
548549
then
549550
err "either clang or gcc is required"
550551
fi
551552

552-
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
553-
# system, so if we find that gcc is clang, we should just use clang directly.
554-
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
555-
then
556-
CFG_OSX_GCC_VERSION=$("$CFG_GCC" --version 2>&1 | grep "Apple LLVM version")
557-
if [ $? -eq 0 ]
558-
then
559-
step_msg "on OS X 10.9, forcing use of clang"
560-
CFG_ENABLE_CLANG=1
561-
putvar CFG_ENABLE_CLANG
562-
fi
563-
fi
564-
565553
if [ ! -z "$CFG_LLVM_ROOT" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
566554
then
567555
step_msg "using custom LLVM at $CFG_LLVM_ROOT"
@@ -570,20 +558,20 @@ then
570558
LLVM_VERSION=$($LLVM_CONFIG --version)
571559

572560
case $LLVM_VERSION in
573-
(3.3|3.3svn|3.2|3.2svn)
574-
msg "found ok version of LLVM: $LLVM_VERSION"
575-
;;
576-
(*)
577-
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
578-
;;
561+
(3.3|3.3svn|3.2|3.2svn)
562+
msg "found ok version of LLVM: $LLVM_VERSION"
563+
;;
564+
(*)
565+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
566+
;;
579567
esac
580568
fi
581569

582570
if [ ! -z "$CFG_ENABLE_CLANG" ]
583571
then
584572
if [ -z "$CFG_CLANG" ]
585573
then
586-
err "clang requested but not found"
574+
err "clang requested but not found"
587575
fi
588576
CFG_CLANG_VERSION=$("$CFG_CLANG" \
589577
--version \

branches/auto/doc/po/ja/tutorial-ffi.md.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ msgid ""
168168
"~~~~ {.xfail-test}\n"
169169
"pub fn validate_compressed_buffer(src: &[u8]) -> bool {\n"
170170
" unsafe {\n"
171-
" snappy_validate_compressed_buffer(src.as_ptr(), src.len() as size_t) == 0\n"
171+
" snappy_validate_compressed_buffer(vec::raw::to_ptr(src), src.len() as size_t) == 0\n"
172172
" }\n"
173173
"}\n"
174174
"~~~~\n"
@@ -207,7 +207,7 @@ msgid ""
207207
"pub fn compress(src: &[u8]) -> ~[u8] {\n"
208208
" unsafe {\n"
209209
" let srclen = src.len() as size_t;\n"
210-
" let psrc = src.as_ptr();\n"
210+
" let psrc = vec::raw::to_ptr(src);\n"
211211
msgstr ""
212212

213213
#. type: Plain text
@@ -216,15 +216,15 @@ msgstr ""
216216
msgid ""
217217
" let mut dstlen = snappy_max_compressed_length(srclen);\n"
218218
" let mut dst = vec::with_capacity(dstlen as uint);\n"
219-
" let pdst = dst.as_mut_ptr();\n"
219+
" let pdst = vec::raw::to_mut_ptr(dst);\n"
220220
msgstr ""
221221

222222
#. type: Plain text
223223
#: doc/tutorial-ffi.md:113
224224
#, no-wrap
225225
msgid ""
226226
" snappy_compress(psrc, srclen, pdst, &mut dstlen);\n"
227-
" dst.set_len(dstlen as uint);\n"
227+
" vec::raw::set_len(&mut dst, dstlen as uint);\n"
228228
" dst\n"
229229
" }\n"
230230
"}\n"
@@ -247,7 +247,7 @@ msgid ""
247247
"pub fn uncompress(src: &[u8]) -> Option<~[u8]> {\n"
248248
" unsafe {\n"
249249
" let srclen = src.len() as size_t;\n"
250-
" let psrc = src.as_ptr();\n"
250+
" let psrc = vec::raw::to_ptr(src);\n"
251251
msgstr ""
252252

253253
#. type: Plain text
@@ -263,15 +263,15 @@ msgstr ""
263263
#, no-wrap
264264
msgid ""
265265
" let mut dst = vec::with_capacity(dstlen as uint);\n"
266-
" let pdst = dst.as_mut_ptr();\n"
266+
" let pdst = vec::raw::to_mut_ptr(dst);\n"
267267
msgstr ""
268268

269269
#. type: Plain text
270270
#: doc/tutorial-ffi.md:138
271271
#, no-wrap
272272
msgid ""
273273
" if snappy_uncompress(psrc, srclen, pdst, &mut dstlen) == 0 {\n"
274-
" dst.set_len(dstlen as uint);\n"
274+
" vec::raw::set_len(&mut dst, dstlen as uint);\n"
275275
" Some(dst)\n"
276276
" } else {\n"
277277
" None // SNAPPY_INVALID_INPUT\n"

branches/auto/doc/po/tutorial-ffi.md.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ msgid ""
168168
"~~~~ {.xfail-test}\n"
169169
"pub fn validate_compressed_buffer(src: &[u8]) -> bool {\n"
170170
" unsafe {\n"
171-
" snappy_validate_compressed_buffer(src.as_ptr(), src.len() as size_t) == 0\n"
171+
" snappy_validate_compressed_buffer(vec::raw::to_ptr(src), src.len() as size_t) == 0\n"
172172
" }\n"
173173
"}\n"
174174
"~~~~\n"
@@ -207,7 +207,7 @@ msgid ""
207207
"pub fn compress(src: &[u8]) -> ~[u8] {\n"
208208
" unsafe {\n"
209209
" let srclen = src.len() as size_t;\n"
210-
" let psrc = src.as_ptr();\n"
210+
" let psrc = vec::raw::to_ptr(src);\n"
211211
msgstr ""
212212

213213
#. type: Plain text
@@ -216,15 +216,15 @@ msgstr ""
216216
msgid ""
217217
" let mut dstlen = snappy_max_compressed_length(srclen);\n"
218218
" let mut dst = vec::with_capacity(dstlen as uint);\n"
219-
" let pdst = dst.as_mut_ptr();\n"
219+
" let pdst = vec::raw::to_mut_ptr(dst);\n"
220220
msgstr ""
221221

222222
#. type: Plain text
223223
#: doc/tutorial-ffi.md:113
224224
#, no-wrap
225225
msgid ""
226226
" snappy_compress(psrc, srclen, pdst, &mut dstlen);\n"
227-
" dst.set_len(dstlen as uint);\n"
227+
" vec::raw::set_len(&mut dst, dstlen as uint);\n"
228228
" dst\n"
229229
" }\n"
230230
"}\n"
@@ -247,7 +247,7 @@ msgid ""
247247
"pub fn uncompress(src: &[u8]) -> Option<~[u8]> {\n"
248248
" unsafe {\n"
249249
" let srclen = src.len() as size_t;\n"
250-
" let psrc = src.as_ptr();\n"
250+
" let psrc = vec::raw::to_ptr(src);\n"
251251
msgstr ""
252252

253253
#. type: Plain text
@@ -263,15 +263,15 @@ msgstr ""
263263
#, no-wrap
264264
msgid ""
265265
" let mut dst = vec::with_capacity(dstlen as uint);\n"
266-
" let pdst = dst.as_mut_ptr();\n"
266+
" let pdst = vec::raw::to_mut_ptr(dst);\n"
267267
msgstr ""
268268

269269
#. type: Plain text
270270
#: doc/tutorial-ffi.md:138
271271
#, no-wrap
272272
msgid ""
273273
" if snappy_uncompress(psrc, srclen, pdst, &mut dstlen) == 0 {\n"
274-
" dst.set_len(dstlen as uint);\n"
274+
" vec::raw::set_len(&mut dst, dstlen as uint);\n"
275275
" Some(dst)\n"
276276
" } else {\n"
277277
" None // SNAPPY_INVALID_INPUT\n"

branches/auto/doc/rust.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,11 @@ Expressions are divided into two main categories: _lvalues_ and _rvalues_.
21772177
Likewise within each expression, sub-expressions may occur in _lvalue context_ or _rvalue context_.
21782178
The evaluation of an expression depends both on its own category and the context it occurs within.
21792179

2180-
[Path](#path-expressions), [field](#field-expressions) and [index](#index-expressions) expressions are lvalues.
2180+
An lvalue is an expression that represents a memory location. These
2181+
expressions are [paths](#path-expressions) (which refer to local
2182+
variables, function and method arguments, or static variables),
2183+
dereferences (`*expr`), [indexing expressions](#index-expressions)
2184+
(`expr[expr]`), and [field references](#field-expressions) (`expr.f`).
21812185
All other expressions are rvalues.
21822186

21832187
The left operand of an [assignment](#assignment-expressions),

branches/auto/doc/tutorial-ffi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ the allocated memory. The length is less than or equal to the capacity.
7979
~~~~ {.xfail-test}
8080
pub fn validate_compressed_buffer(src: &[u8]) -> bool {
8181
unsafe {
82-
snappy_validate_compressed_buffer(src.as_ptr(), src.len() as size_t) == 0
82+
snappy_validate_compressed_buffer(vec::raw::to_ptr(src), src.len() as size_t) == 0
8383
}
8484
}
8585
~~~~
@@ -100,14 +100,14 @@ the true length after compression for setting the length.
100100
pub fn compress(src: &[u8]) -> ~[u8] {
101101
unsafe {
102102
let srclen = src.len() as size_t;
103-
let psrc = src.as_ptr();
103+
let psrc = vec::raw::to_ptr(src);
104104
105105
let mut dstlen = snappy_max_compressed_length(srclen);
106106
let mut dst = vec::with_capacity(dstlen as uint);
107-
let pdst = dst.as_mut_ptr();
107+
let pdst = vec::raw::to_mut_ptr(dst);
108108
109109
snappy_compress(psrc, srclen, pdst, &mut dstlen);
110-
dst.set_len(dstlen as uint);
110+
vec::raw::set_len(&mut dst, dstlen as uint);
111111
dst
112112
}
113113
}
@@ -120,16 +120,16 @@ format and `snappy_uncompressed_length` will retrieve the exact buffer size requ
120120
pub fn uncompress(src: &[u8]) -> Option<~[u8]> {
121121
unsafe {
122122
let srclen = src.len() as size_t;
123-
let psrc = src.as_ptr();
123+
let psrc = vec::raw::to_ptr(src);
124124
125125
let mut dstlen: size_t = 0;
126126
snappy_uncompressed_length(psrc, srclen, &mut dstlen);
127127
128128
let mut dst = vec::with_capacity(dstlen as uint);
129-
let pdst = dst.as_mut_ptr();
129+
let pdst = vec::raw::to_mut_ptr(dst);
130130
131131
if snappy_uncompress(psrc, srclen, pdst, &mut dstlen) == 0 {
132-
dst.set_len(dstlen as uint);
132+
vec::raw::set_len(&mut dst, dstlen as uint);
133133
Some(dst)
134134
} else {
135135
None // SNAPPY_INVALID_INPUT

branches/auto/src/libextra/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<T:Freeze + Send> MutexArc<T> {
276276
* might contain nested MutexArcs inside.
277277
*
278278
* The purpose of this is to offer a safe implementation of MutexArc to be
279-
* used instead of RWArc in cases where no readers are needed and slightly
279+
* used instead of RWArc in cases where no readers are needed and sightly
280280
* better performance is required.
281281
*
282282
* Both methods have the same failure behaviour as unsafe_access and

branches/auto/src/libextra/arena.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ use std::num;
4444
use std::ptr;
4545
use std::mem;
4646
use std::uint;
47+
use std::vec;
4748
use std::unstable::intrinsics;
4849
use std::unstable::intrinsics::{TyDesc, get_tydesc};
4950

@@ -114,7 +115,7 @@ fn round_up_to(base: uint, align: uint) -> uint {
114115
// in it.
115116
unsafe fn destroy_chunk(chunk: &Chunk) {
116117
let mut idx = 0;
117-
let buf = chunk.data.as_ptr();
118+
let buf = vec::raw::to_ptr(chunk.data);
118119
let fill = chunk.fill;
119120

120121
while idx < fill {
@@ -178,7 +179,7 @@ impl Arena {
178179
//debug!("idx = {}, size = {}, align = {}, fill = {}",
179180
// start, n_bytes, align, head.fill);
180181

181-
ptr::offset(this.pod_head.data.as_ptr(), start as int)
182+
ptr::offset(vec::raw::to_ptr(this.pod_head.data), start as int)
182183
}
183184
}
184185

@@ -234,7 +235,7 @@ impl Arena {
234235
//debug!("idx = {}, size = {}, align = {}, fill = {}",
235236
// start, n_bytes, align, head.fill);
236237

237-
let buf = self.head.data.as_ptr();
238+
let buf = vec::raw::to_ptr(self.head.data);
238239
return (ptr::offset(buf, tydesc_start as int), ptr::offset(buf, start as int));
239240
}
240241
}

branches/auto/src/libextra/getopts.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! file name following `-o`, and accepts both `-h` and `--help` as optional flags.
3131
//!
3232
//! ~~~{.rust}
33-
//! extern mod extra;
33+
//! exter mod extra;
3434
//! use extra::getopts::*;
3535
//! use std::os;
3636
//!
@@ -114,7 +114,7 @@ pub enum Occur {
114114
pub struct Opt {
115115
/// Name of the option
116116
name: Name,
117-
/// Whether it has an argument
117+
/// Wheter it has an argument
118118
hasarg: HasArg,
119119
/// How often it can occur
120120
occur: Occur,
@@ -154,7 +154,7 @@ pub enum Fail_ {
154154
UnexpectedArgument(~str),
155155
}
156156

157-
/// The type of failure that occurred.
157+
/// The type of failure that occured.
158158
#[deriving(Eq)]
159159
#[allow(missing_doc)]
160160
pub enum FailType {

branches/auto/src/libextra/tempfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::io;
1818
use std::io::fs;
1919

2020
/// A wrapper for a path to temporary directory implementing automatic
21-
/// scope-based deletion.
21+
/// scope-pased deletion.
2222
pub struct TempDir {
2323
priv path: Option<Path>
2424
}

0 commit comments

Comments
 (0)