Skip to content

Commit 7e645bc

Browse files
committed
---
yaml --- r: 149002 b: refs/heads/try2 c: dd071ee h: refs/heads/master v: v3
1 parent a014f1a commit 7e645bc

Some content is hidden

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

85 files changed

+1359
-1715
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: 5acc998ed9b76d9c00849e007101f9c33b17c6c4
8+
refs/heads/try2: dd071eeeb8acc4ef616a18c468e889d2aa7782c2
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/tests.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,9 @@ endif
116116

117117
# Run the compiletest runner itself under valgrind
118118
ifdef CTEST_VALGRIND
119-
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
120-
$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(2),$$(3))
119+
CFG_RUN_CTEST_$(1)=$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(2),$$(3))
121120
else
122-
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
123-
$$(call CFG_RUN_$$(CFG_BUILD),$$(TLIB$$(1)_T_$$(3)_H_$$(3)),$$(2))
121+
CFG_RUN_CTEST_$(1)=$$(call CFG_RUN_$$(CFG_BUILD),$$(TLIB$$(1)_T_$$(3)_H_$$(3)),$$(2))
124122
endif
125123

126124
endef

branches/try2/src/compiletest/runtest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ fn check_error_patterns(props: &TestProps,
442442
testfile: &Path,
443443
ProcRes: &ProcRes) {
444444
if props.error_patterns.is_empty() {
445-
fatal(~"no error pattern specified in " + testfile.display().as_maybe_owned().as_slice());
445+
testfile.display().with_str(|s| {
446+
fatal(~"no error pattern specified in " + s);
447+
})
446448
}
447449
448450
if ProcRes.status.success() {

branches/try2/src/doc/rust.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,14 +1969,13 @@ impl<T: Eq> Eq for Foo<T> {
19691969
Supported traits for `deriving` are:
19701970

19711971
* Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`.
1972-
* Serialization: `Encodable`, `Decodable`. These require `serialize`.
1972+
* Serialization: `Encodable`, `Decodable`. These require `extra`.
19731973
* `Clone` and `DeepClone`, to perform (deep) copies.
19741974
* `IterBytes`, to iterate over the bytes in a data type.
19751975
* `Rand`, to create a random instance of a data type.
19761976
* `Default`, to create an empty instance of a data type.
19771977
* `Zero`, to create an zero instance of a numeric data type.
1978-
* `FromPrimitive`, to create an instance from a numeric primitive.
1979-
* `Show`, to format a value using the `{}` formatter.
1978+
* `FromPrimitive`, to create an instance from a numeric primitve.
19801979

19811980
### Stability
19821981
One can indicate the stability of an API using the following attributes:

branches/try2/src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2523,7 +2523,7 @@ enum ABC { A, B, C }
25232523

25242524
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
25252525
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2526-
`IterBytes`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
2526+
`IterBytes`, `Rand`, `Default`, `Zero`, and `ToStr`.
25272527

25282528
# Crates and the module system
25292529

branches/try2/src/etc/generate-deriving-span-tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ def write_file(name, string):
118118
for (trait, supers, errs) in [('Rand', [], 1),
119119
('Clone', [], 1), ('DeepClone', ['Clone'], 1),
120120
('Eq', [], 2), ('Ord', [], 8),
121-
('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1),
122-
('Show', [], 1)]:
121+
('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1)]:
123122
traits[trait] = (ALL, supers, errs)
124123

125124
for (trait, (types, super_traits, error_count)) in traits.items():

branches/try2/src/etc/vim/syntax/rust.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ syn keyword rustTrait Primitive Int Float ToStrRadix ToPrimitive FromPrimitive
8787
syn keyword rustTrait GenericPath Path PosixPath WindowsPath
8888
syn keyword rustTrait RawPtr
8989
syn keyword rustTrait Buffer Writer Reader Seek
90-
syn keyword rustTrait Str StrVector StrSlice OwnedStr IntoMaybeOwned
90+
syn keyword rustTrait SendStr SendStrOwned SendStrStatic IntoSendStr
91+
syn keyword rustTrait Str StrVector StrSlice OwnedStr
9192
syn keyword rustTrait IterBytes
9293
syn keyword rustTrait ToStr IntoStr
9394
syn keyword rustTrait CloneableTuple ImmutableTuple

branches/try2/src/libarena/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ impl Arena {
214214
#[inline]
215215
fn alloc_pod<'a, T>(&'a mut self, op: || -> T) -> &'a T {
216216
unsafe {
217-
let ptr = self.alloc_pod_inner(mem::size_of::<T>(), mem::min_align_of::<T>());
217+
let tydesc = get_tydesc::<T>();
218+
let ptr = self.alloc_pod_inner((*tydesc).size, (*tydesc).align);
218219
let ptr: *mut T = transmute(ptr);
219220
intrinsics::move_val_init(&mut (*ptr), op());
220221
return transmute(ptr);
@@ -271,7 +272,7 @@ impl Arena {
271272
unsafe {
272273
let tydesc = get_tydesc::<T>();
273274
let (ty_ptr, ptr) =
274-
self.alloc_nonpod_inner(mem::size_of::<T>(), mem::min_align_of::<T>());
275+
self.alloc_nonpod_inner((*tydesc).size, (*tydesc).align);
275276
let ty_ptr: *mut uint = transmute(ty_ptr);
276277
let ptr: *mut T = transmute(ptr);
277278
// Write in our tydesc along with a bit indicating that it

0 commit comments

Comments
 (0)