Skip to content

Commit 42d90fb

Browse files
committed
---
yaml --- r: 209596 b: refs/heads/try c: cc267ce h: refs/heads/master v: v3
1 parent 67add0f commit 42d90fb

Some content is hidden

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

105 files changed

+1179
-2061
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: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: fcf637b19f1a94dcf1748b8b29fca100f150eb0a
5+
refs/heads/try: cc267cefcb4ffc4650d7307c7e31f0ce2cddbba4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#
7777
# * `CFG_ENABLE_VALGRIND=1` - Run tests under valgrind
7878
# * `VALGRIND_COMPILE=1` - Run the compiler itself under valgrind
79-
# (may require `CFG_ENABLE_VALGRIND`)
79+
# (requires `CFG_ENABLE_VALGRIND`)
8080
#
8181
# * `NO_REBUILD=1` - Don't rebootstrap when testing std
8282
# (and possibly other crates)

branches/try/mk/crates.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,18 @@
5252
TARGET_CRATES := libc std flate arena term \
5353
serialize getopts collections test rand \
5454
log graphviz core rbml alloc \
55-
rustc_unicode rustc_bitflags
55+
unicode rustc_bitflags
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
58-
rustc_data_structures
57+
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint
5958
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
6059
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6160
TOOLS := compiletest rustdoc rustc rustbook
6261

6362
DEPS_core :=
6463
DEPS_libc := core
65-
DEPS_rustc_unicode := core
64+
DEPS_unicode := core
6665
DEPS_alloc := core libc native:jemalloc
67-
DEPS_std := core libc rand alloc collections rustc_unicode \
66+
DEPS_std := core libc rand alloc collections unicode \
6867
native:rust_builtin native:backtrace native:rustrt_native \
6968
rustc_bitflags
7069
DEPS_graphviz := std
@@ -81,10 +80,9 @@ DEPS_rustc_resolve := rustc log syntax
8180
DEPS_rustc_privacy := rustc log syntax
8281
DEPS_rustc_lint := rustc log syntax
8382
DEPS_rustc := syntax flate arena serialize getopts rbml \
84-
log graphviz rustc_llvm rustc_back rustc_data_structures
83+
log graphviz rustc_llvm rustc_back
8584
DEPS_rustc_llvm := native:rustllvm libc std
8685
DEPS_rustc_back := std syntax rustc_llvm flate log libc
87-
DEPS_rustc_data_structures := std log serialize
8886
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
8987
test rustc_lint
9088
DEPS_rustc_bitflags := core
@@ -96,7 +94,7 @@ DEPS_serialize := std log
9694
DEPS_rbml := std log serialize
9795
DEPS_term := std log
9896
DEPS_getopts := std
99-
DEPS_collections := core alloc rustc_unicode
97+
DEPS_collections := core alloc unicode
10098
DEPS_num := std
10199
DEPS_test := std getopts serialize rbml term native:rust_test_helpers
102100
DEPS_rand := core
@@ -117,11 +115,11 @@ ONLY_RLIB_libc := 1
117115
ONLY_RLIB_alloc := 1
118116
ONLY_RLIB_rand := 1
119117
ONLY_RLIB_collections := 1
120-
ONLY_RLIB_rustc_unicode := 1
118+
ONLY_RLIB_unicode := 1
121119
ONLY_RLIB_rustc_bitflags := 1
122120

123121
# Documented-by-default crates
124-
DOC_CRATES := std alloc collections core libc rustc_unicode
122+
DOC_CRATES := std alloc collections core libc unicode
125123

126124
################################################################################
127125
# You should not need to edit below this line

branches/try/mk/tests.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
# The names of crates that must be tested
1717

18-
# libcore/librustc_unicode tests are in a separate crate
18+
# libcore/libunicode tests are in a separate crate
1919
DEPS_coretest :=
2020
$(eval $(call RUST_CRATE,coretest))
2121

2222
DEPS_collectionstest :=
2323
$(eval $(call RUST_CRATE,collectionstest))
2424

25-
TEST_TARGET_CRATES = $(filter-out core rustc_unicode,$(TARGET_CRATES)) \
25+
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) \
2626
collectionstest coretest
2727
TEST_DOC_CRATES = $(DOC_CRATES)
2828
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \

branches/try/src/doc/trpl/hello-cargo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ we hadn’t changed the source file, and so it just ran the binary. If we had
8989
made a modification, we would have seen it do both:
9090

9191
```bash
92-
$ cargo run
92+
$ cargo build
9393
Compiling hello_world v0.0.1 (file:///home/yourname/projects/hello_world)
9494
Running `target/debug/hello_world`
9595
Hello, world!

branches/try/src/doc/trpl/vectors.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
% Vectors
22

33
A *vector* is a dynamic or "growable" array, implemented as the standard
4-
library type [`Vec<T>`](../std/vec/) (Where `<T>` is a [Generic](./generics.md)
5-
statement). Vectors always allocate their data on the heap. Vectors are to
6-
[slices][slices] what [`String`][string] is to `&str`. You can
7-
create them with the `vec!` macro:
4+
library type [`Vec<T>`](../std/vec/) (Where `<T>` is a [Generic](./generics.md) statement). Vectors always allocate their data on the heap. Vectors are to slices
5+
what `String` is to `&str`. You can create them with the `vec!` macro:
86

97
```{rust}
108
let v = vec![1, 2, 3]; // v: Vec<i32>
119
```
1210

13-
[slices]: primitive-types.html#slices
14-
[string]: strings.html
15-
1611
(Notice that unlike the `println!` macro we've used in the past, we use square
1712
brackets `[]` with `vec!`. Rust allows you to use either in either situation,
1813
this is just convention.)

branches/try/src/etc/unicode.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,11 @@ def comp_pfun(char):
518518
emit_table(f, "combining_class_table", combine, "&'static [(char, char, u8)]", is_pub=False,
519519
pfun=lambda x: "(%s,%s,%s)" % (escape_char(x[0]), escape_char(x[1]), x[2]))
520520

521-
f.write(""" #[deprecated(reason = "use the crates.io `unicode-normalization` lib instead",
522-
since = "1.0.0")]
523-
#[unstable(feature = "unicode",
524-
reason = "this functionality will be moved to crates.io")]
525-
pub fn canonical_combining_class(c: char) -> u8 {
526-
bsearch_range_value_table(c, combining_class_table)
527-
}
521+
f.write(" pub fn canonical_combining_class(c: char) -> u8 {\n"
522+
+ " bsearch_range_value_table(c, combining_class_table)\n"
523+
+ " }\n")
528524

525+
f.write("""
529526
}
530527
531528
""")

branches/try/src/libcollections/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,6 @@ use string;
443443
#[stable(feature = "rust1", since = "1.0.0")]
444444
pub fn format(args: Arguments) -> string::String {
445445
let mut output = string::String::new();
446-
let _ = output.write_fmt(args);
446+
let _ = write!(&mut output, "{}", args);
447447
output
448448
}

branches/try/src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#[macro_use]
5151
extern crate core;
5252

53-
extern crate rustc_unicode;
53+
extern crate unicode;
5454
extern crate alloc;
5555

5656
#[cfg(test)] #[macro_use] extern crate std;

branches/try/src/libcollections/str.rs

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ use core::result::Result;
5959
use core::str as core_str;
6060
use core::str::pattern::Pattern;
6161
use core::str::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
62-
use rustc_unicode::str::{UnicodeStr, Utf16Encoder};
62+
use unicode::str::{UnicodeStr, Utf16Encoder};
6363

6464
use core::convert::AsRef;
6565
use vec_deque::VecDeque;
6666
use borrow::{Borrow, ToOwned};
6767
use string::String;
68-
use rustc_unicode;
68+
use unicode;
6969
use vec::Vec;
7070
use slice::SliceConcatExt;
7171

@@ -78,7 +78,7 @@ pub use core::str::{Matches, RMatches};
7878
pub use core::str::{MatchIndices, RMatchIndices};
7979
pub use core::str::{from_utf8, Chars, CharIndices, Bytes};
8080
pub use core::str::{from_utf8_unchecked, ParseBoolError};
81-
pub use rustc_unicode::str::{Words, Graphemes, GraphemeIndices};
81+
pub use unicode::str::{Words, Graphemes, GraphemeIndices};
8282
pub use core::str::pattern;
8383

8484
/*
@@ -161,9 +161,6 @@ enum DecompositionType {
161161
/// External iterator for a string decomposition's characters.
162162
///
163163
/// For use with the `std::iter` module.
164-
#[allow(deprecated)]
165-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
166-
since = "1.0.0")]
167164
#[derive(Clone)]
168165
#[unstable(feature = "unicode",
169166
reason = "this functionality may be replaced with a more generic \
@@ -175,7 +172,6 @@ pub struct Decompositions<'a> {
175172
sorted: bool
176173
}
177174

178-
#[allow(deprecated)]
179175
#[stable(feature = "rust1", since = "1.0.0")]
180176
impl<'a> Iterator for Decompositions<'a> {
181177
type Item = char;
@@ -202,7 +198,7 @@ impl<'a> Iterator for Decompositions<'a> {
202198
{
203199
let callback = |d| {
204200
let class =
205-
rustc_unicode::char::canonical_combining_class(d);
201+
unicode::char::canonical_combining_class(d);
206202
if class == 0 && !*sorted {
207203
canonical_sort(buffer);
208204
*sorted = true;
@@ -211,10 +207,10 @@ impl<'a> Iterator for Decompositions<'a> {
211207
};
212208
match self.kind {
213209
Canonical => {
214-
rustc_unicode::char::decompose_canonical(ch, callback)
210+
unicode::char::decompose_canonical(ch, callback)
215211
}
216212
Compatible => {
217-
rustc_unicode::char::decompose_compatible(ch, callback)
213+
unicode::char::decompose_compatible(ch, callback)
218214
}
219215
}
220216
}
@@ -258,9 +254,6 @@ enum RecompositionState {
258254
/// External iterator for a string recomposition's characters.
259255
///
260256
/// For use with the `std::iter` module.
261-
#[allow(deprecated)]
262-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
263-
since = "1.0.0")]
264257
#[derive(Clone)]
265258
#[unstable(feature = "unicode",
266259
reason = "this functionality may be replaced with a more generic \
@@ -273,7 +266,6 @@ pub struct Recompositions<'a> {
273266
last_ccc: Option<u8>
274267
}
275268

276-
#[allow(deprecated)]
277269
#[stable(feature = "rust1", since = "1.0.0")]
278270
impl<'a> Iterator for Recompositions<'a> {
279271
type Item = char;
@@ -284,7 +276,7 @@ impl<'a> Iterator for Recompositions<'a> {
284276
match self.state {
285277
Composing => {
286278
for ch in self.iter.by_ref() {
287-
let ch_class = rustc_unicode::char::canonical_combining_class(ch);
279+
let ch_class = unicode::char::canonical_combining_class(ch);
288280
if self.composee.is_none() {
289281
if ch_class != 0 {
290282
return Some(ch);
@@ -296,7 +288,7 @@ impl<'a> Iterator for Recompositions<'a> {
296288

297289
match self.last_ccc {
298290
None => {
299-
match rustc_unicode::char::compose(k, ch) {
291+
match unicode::char::compose(k, ch) {
300292
Some(r) => {
301293
self.composee = Some(r);
302294
continue;
@@ -324,7 +316,7 @@ impl<'a> Iterator for Recompositions<'a> {
324316
self.last_ccc = Some(ch_class);
325317
continue;
326318
}
327-
match rustc_unicode::char::compose(k, ch) {
319+
match unicode::char::compose(k, ch) {
328320
Some(r) => {
329321
self.composee = Some(r);
330322
continue;
@@ -473,9 +465,6 @@ impl str {
473465

474466
/// Returns an iterator over the string in Unicode Normalization Form D
475467
/// (canonical decomposition).
476-
#[allow(deprecated)]
477-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
478-
since = "1.0.0")]
479468
#[inline]
480469
#[unstable(feature = "unicode",
481470
reason = "this functionality may be replaced with a more generic \
@@ -491,9 +480,6 @@ impl str {
491480

492481
/// Returns an iterator over the string in Unicode Normalization Form KD
493482
/// (compatibility decomposition).
494-
#[allow(deprecated)]
495-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
496-
since = "1.0.0")]
497483
#[inline]
498484
#[unstable(feature = "unicode",
499485
reason = "this functionality may be replaced with a more generic \
@@ -509,9 +495,6 @@ impl str {
509495

510496
/// An Iterator over the string in Unicode Normalization Form C
511497
/// (canonical decomposition followed by canonical composition).
512-
#[allow(deprecated)]
513-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
514-
since = "1.0.0")]
515498
#[inline]
516499
#[unstable(feature = "unicode",
517500
reason = "this functionality may be replaced with a more generic \
@@ -528,9 +511,6 @@ impl str {
528511

529512
/// An Iterator over the string in Unicode Normalization Form KC
530513
/// (compatibility decomposition followed by canonical composition).
531-
#[allow(deprecated)]
532-
#[deprecated(reason = "use the crates.io `unicode-normalization` library instead",
533-
since = "1.0.0")]
534514
#[inline]
535515
#[unstable(feature = "unicode",
536516
reason = "this functionality may be replaced with a more generic \
@@ -1710,8 +1690,6 @@ impl str {
17101690
///
17111691
/// assert_eq!(&gr2[..], b);
17121692
/// ```
1713-
#[deprecated(reason = "use the crates.io `unicode-segmentation` library instead",
1714-
since = "1.0.0")]
17151693
#[unstable(feature = "unicode",
17161694
reason = "this functionality may only be provided by libunicode")]
17171695
pub fn graphemes(&self, is_extended: bool) -> Graphemes {
@@ -1731,8 +1709,6 @@ impl str {
17311709
///
17321710
/// assert_eq!(&gr_inds[..], b);
17331711
/// ```
1734-
#[deprecated(reason = "use the crates.io `unicode-segmentation` library instead",
1735-
since = "1.0.0")]
17361712
#[unstable(feature = "unicode",
17371713
reason = "this functionality may only be provided by libunicode")]
17381714
pub fn grapheme_indices(&self, is_extended: bool) -> GraphemeIndices {
@@ -1773,8 +1749,6 @@ impl str {
17731749
/// recommends that these
17741750
/// characters be treated as 1 column (i.e., `is_cjk = false`) if the
17751751
/// locale is unknown.
1776-
#[deprecated(reason = "use the crates.io `unicode-width` library instead",
1777-
since = "1.0.0")]
17781752
#[unstable(feature = "unicode",
17791753
reason = "this functionality may only be provided by libunicode")]
17801754
pub fn width(&self, is_cjk: bool) -> usize {

branches/try/src/libcollections/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use core::ops::{self, Deref, Add, Index};
2525
use core::ptr;
2626
use core::slice;
2727
use core::str::pattern::Pattern;
28-
use rustc_unicode::str as unicode_str;
29-
use rustc_unicode::str::Utf16Item;
28+
use unicode::str as unicode_str;
29+
use unicode::str::Utf16Item;
3030

3131
use borrow::{Cow, IntoCow};
3232
use str::{self, FromStr, Utf8Error};

branches/try/src/libcollectionstest/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
extern crate collections;
2929
extern crate test;
30-
extern crate rustc_unicode;
30+
extern crate unicode;
3131

3232
#[cfg(test)] #[macro_use] mod bench;
3333

0 commit comments

Comments
 (0)