Skip to content

Commit 9cd3f5d

Browse files
committed
---
yaml --- r: 41997 b: refs/heads/master c: e4337a9 h: refs/heads/master i: 41995: a169c1e v: v3
1 parent 5a1a8c0 commit 9cd3f5d

36 files changed

+146
-157
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d191e89d9ef40acc0a2b958a41413af5957e1b2e
2+
refs/heads/master: e4337a9defcad3f2a65da285ab78f8ede554f379
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/compiletest/compiletest.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn parse_config(args: ~[~str]) -> config {
7070
getopts::optopt(~"logfile"),
7171
getopts::optflag(~"jit")];
7272

73-
assert (vec::is_not_empty(args));
73+
assert !args.is_empty();
7474
let args_ = vec::tail(args);
7575
let matches =
7676
&match getopts::getopts(args_, opts) {

trunk/src/compiletest/runtest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ fn run_cfail_test(config: config, props: test_props, testfile: &Path) {
5959
check_correct_failure_status(procres);
6060
6161
let expected_errors = errors::load_errors(testfile);
62-
if vec::is_not_empty(expected_errors) {
63-
if vec::is_not_empty(props.error_patterns) {
62+
if !expected_errors.is_empty() {
63+
if !props.error_patterns.is_empty() {
6464
fatal(~"both error pattern and expected errors specified");
6565
}
6666
check_expected_errors(expected_errors, testfile, procres);
@@ -440,7 +440,7 @@ fn compose_and_run_compiler(
440440
args: procargs,
441441
input: Option<~str>) -> procres {
442442

443-
if props.aux_builds.is_not_empty() {
443+
if !props.aux_builds.is_empty() {
444444
ensure_dir(&aux_output_dir_name(config, testfile));
445445
}
446446

trunk/src/libcore/core.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ pub use path::PosixPath;
190190

191191
pub use tuple::{CopyableTuple, ImmutableTuple, ExtendedTupleOps};
192192
pub use str::{StrSlice, Trimmable};
193-
pub use vec::{ConstVector, CopyableVector, ImmutableVector};
193+
pub use container::{Container, Mutable};
194+
pub use vec::{CopyableVector, ImmutableVector};
194195
pub use vec::{ImmutableEqVector, ImmutableCopyableVector};
195196
pub use vec::{OwnedVector, OwnedCopyableVector};
196197
pub use iter::{BaseIter, ExtendedIter, EqIter, CopyableIter};

trunk/src/libcore/dlist.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ impl<T> DList<T> {
208208
pure fn len(@self) -> uint { self.size }
209209
/// Returns true if the list is empty. O(1).
210210
pure fn is_empty(@self) -> bool { self.len() == 0 }
211-
/// Returns true if the list is not empty. O(1).
212-
pure fn is_not_empty(@self) -> bool { self.len() != 0 }
213211
214212
/// Add data to the head of the list. O(1).
215213
fn push_head(@self, data: T) {
@@ -648,8 +646,6 @@ mod tests {
648646
let full1 = from_vec(~[1,2,3]);
649647
assert empty.is_empty();
650648
assert !full1.is_empty();
651-
assert !empty.is_not_empty();
652-
assert full1.is_not_empty();
653649
}
654650
#[test]
655651
fn test_dlist_head_tail() {

trunk/src/libcore/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub pure fn to_str_common(num: float, digits: uint, exact: bool) -> ~str {
157157

158158
// turn digits into string
159159
// using stack of digits
160-
while fractionalParts.is_not_empty() {
160+
while !fractionalParts.is_empty() {
161161
// Bleh; shouldn't need to be unsafe
162162
let mut adjusted_digit = carry + unsafe { fractionalParts.pop() };
163163

0 commit comments

Comments
 (0)