2014-06-28 13:57:36 -07:00
|
|
|
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
2015-01-07 18:53:58 -08:00
|
|
|
|
2015-03-05 11:53:51 -05:00
|
|
|
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
|
|
|
|
#![cfg_attr(stage0, feature(custom_attribute))]
|
2015-04-17 23:45:55 -07:00
|
|
|
|
2015-01-07 18:53:58 -08:00
|
|
|
#![feature(box_syntax)]
|
2015-01-30 12:26:44 -08:00
|
|
|
#![feature(unboxed_closures)]
|
2015-02-19 12:57:25 -05:00
|
|
|
#![feature(core)]
|
2015-05-29 09:42:32 -04:00
|
|
|
#![feature(const_fn)]
|
2015-02-19 12:57:25 -05:00
|
|
|
#![feature(test)]
|
|
|
|
#![feature(rand)]
|
|
|
|
#![feature(unicode)]
|
|
|
|
#![feature(std_misc)]
|
|
|
|
#![feature(libc)]
|
|
|
|
#![feature(hash)]
|
2015-03-05 18:33:58 -08:00
|
|
|
#![feature(unique)]
|
|
|
|
#![feature(step_by)]
|
2015-03-26 18:34:27 -07:00
|
|
|
#![feature(slice_patterns)]
|
2015-04-17 23:45:55 -07:00
|
|
|
#![feature(float_from_str_radix)]
|
2015-05-28 23:00:52 +02:00
|
|
|
#![feature(cell_extras)]
|
2015-05-26 16:39:18 -07:00
|
|
|
#![feature(iter_empty)]
|
|
|
|
#![feature(iter_once)]
|
2015-06-13 22:34:58 +08:00
|
|
|
#![feature(result_expect)]
|
2014-06-28 13:57:36 -07:00
|
|
|
|
|
|
|
extern crate core;
|
|
|
|
extern crate test;
|
|
|
|
extern crate libc;
|
deprecate Unicode functions that will be moved to crates.io
This patch
1. renames libunicode to librustc_unicode,
2. deprecates several pieces of libunicode (see below), and
3. removes references to deprecated functions from
librustc_driver and libsyntax. This may change pretty-printed
output from these modules in cases involving wide or combining
characters used in filenames, identifiers, etc.
The following functions are marked deprecated:
1. char.width() and str.width():
--> use unicode-width crate
2. str.graphemes() and str.grapheme_indices():
--> use unicode-segmentation crate
3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(),
char.compose(), char.decompose_canonical(), char.decompose_compatible(),
char.canonical_combining_class():
--> use unicode-normalization crate
2015-04-14 15:52:37 -04:00
|
|
|
extern crate rustc_unicode;
|
2015-04-19 14:19:54 +09:00
|
|
|
extern crate rand;
|
2014-06-28 13:57:36 -07:00
|
|
|
|
|
|
|
mod any;
|
2014-08-04 15:42:36 -07:00
|
|
|
mod atomic;
|
2014-06-28 13:57:36 -07:00
|
|
|
mod cell;
|
|
|
|
mod char;
|
|
|
|
mod cmp;
|
|
|
|
mod fmt;
|
2014-12-12 18:43:07 -08:00
|
|
|
mod hash;
|
2014-06-28 13:57:36 -07:00
|
|
|
mod iter;
|
|
|
|
mod mem;
|
2014-12-23 15:52:02 -05:00
|
|
|
mod nonzero;
|
2014-06-28 13:57:36 -07:00
|
|
|
mod num;
|
|
|
|
mod ops;
|
|
|
|
mod option;
|
|
|
|
mod ptr;
|
|
|
|
mod result;
|
2014-08-06 20:48:25 -07:00
|
|
|
mod slice;
|
2014-08-18 21:43:43 -04:00
|
|
|
mod str;
|
2014-06-28 13:57:36 -07:00
|
|
|
mod tuple;
|