Skip to content

Commit 001c386

Browse files
committed
---
yaml --- r: 83343 b: refs/heads/try c: 9969b57 h: refs/heads/master i: 83341: 6ba2c09 83339: 0ab1d72 83335: f57c244 83327: a07e49f v: v3
1 parent f7ff49d commit 001c386

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: 13571af92fc8f2aa115ce1fcb8b82b5f654e5780
5+
refs/heads/try: 9969b573c17efbc1c888eb952031580df8401cc2
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/RELEASES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Version 0.8 (October 2013)
3131
* `ref` bindings in irrefutable patterns work correctly now.
3232
* `char` is now prevented from containing invalid code points.
3333
* Casting to `bool` is no longer allowed.
34+
* `\0` is now accepted as an escape in chars and strings.
3435
* `yield` is a reserved keyword.
3536
* `typeof` is a reserved keyword.
3637
* Crates may be imported by URL with `extern mod foo = "url";`.
@@ -111,6 +112,9 @@ Version 0.8 (October 2013)
111112
the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
112113
`Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
113114
default implementations.
115+
* std: Various `from_str` functions were removed in favor of a generic
116+
`from_str` which is available in the prelude.
117+
* std: `util::unreachable` removed in favor of the `unreachable!` macro.
114118
* extra: `dlist`, the doubly-linked list was modernized.
115119
* extra: Added a `hex` module with `ToHex` and `FromHex` traits.
116120
* extra: Added `glob` module, replacing `std::os::glob`.
@@ -125,6 +129,9 @@ Version 0.8 (October 2013)
125129
* extra: `semver` updated to SemVer 2.0.0.
126130
* extra: `term` handles more terminals correctly.
127131
* extra: `dbg` module removed.
132+
* extra: `par` module removed.
133+
* extra: `future` was cleaned up, with some method renames.
134+
* extra: Most free functions in `getopts` were converted to methods.
128135

129136
* Other
130137
* rustc's debug info generation (`-Z debug-info`) is greatly improved.
@@ -205,6 +212,7 @@ Version 0.7 (July 2013)
205212
* std: Many old internal vector and string iterators,
206213
incl. `any`, `all`. removed.
207214
* std: The `finalize` method of `Drop` renamed to `drop`.
215+
* std: The `drop` method now takes `&mut self` instead of `&self`.
208216
* std: The prelude no longer reexports any modules, only types and traits.
209217
* std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
210218
`Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.

branches/try/src/libstd/char.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,6 @@ pub fn is_alphanumeric(c: char) -> bool {
128128
|| general_category::No(c)
129129
}
130130

131-
///
132-
/// Indicates whether a character is a control character. Control
133-
/// characters are defined in terms of the Unicode General Category
134-
/// 'Cc'.
135-
///
136-
#[inline]
137-
pub fn is_control(c: char) -> bool { general_category::Cc(c) }
138-
139131
/// Indicates whether the character is numeric (Nd, Nl, or No)
140132
#[inline]
141133
pub fn is_digit(c: char) -> bool {
@@ -362,7 +354,6 @@ pub trait Char {
362354
fn is_uppercase(&self) -> bool;
363355
fn is_whitespace(&self) -> bool;
364356
fn is_alphanumeric(&self) -> bool;
365-
fn is_control(&self) -> bool;
366357
fn is_digit(&self) -> bool;
367358
fn is_digit_radix(&self, radix: uint) -> bool;
368359
fn to_digit(&self, radix: uint) -> Option<uint>;
@@ -393,8 +384,6 @@ impl Char for char {
393384

394385
fn is_alphanumeric(&self) -> bool { is_alphanumeric(*self) }
395386

396-
fn is_control(&self) -> bool { is_control(*self) }
397-
398387
fn is_digit(&self) -> bool { is_digit(*self) }
399388

400389
fn is_digit_radix(&self, radix: uint) -> bool { is_digit_radix(*self, radix) }
@@ -505,19 +494,6 @@ fn test_to_digit() {
505494
assert_eq!('$'.to_digit(36u), None);
506495
}
507496

508-
#[test]
509-
fn test_is_control() {
510-
assert!('\u0000'.is_control());
511-
assert!('\u0003'.is_control());
512-
assert!('\u0006'.is_control());
513-
assert!('\u0009'.is_control());
514-
assert!('\u007f'.is_control());
515-
assert!('\u0092'.is_control());
516-
assert!(!'\u0020'.is_control());
517-
assert!(!'\u0055'.is_control());
518-
assert!(!'\u0068'.is_control());
519-
}
520-
521497
#[test]
522498
fn test_is_digit() {
523499
assert!('2'.is_digit());

0 commit comments

Comments
 (0)