2014-06-28 22:57:36 +02: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-08 03:53:58 +01:00
|
|
|
|
2016-01-31 01:19:37 +01:00
|
|
|
#![deny(warnings)]
|
|
|
|
|
2015-06-10 22:33:52 +02:00
|
|
|
#![feature(borrow_state)]
|
2015-01-08 03:53:58 +01:00
|
|
|
#![feature(box_syntax)]
|
2015-06-10 22:33:52 +02:00
|
|
|
#![feature(cell_extras)]
|
2016-07-27 12:10:31 +02:00
|
|
|
#![feature(char_escape_debug)]
|
2015-05-29 15:42:32 +02:00
|
|
|
#![feature(const_fn)]
|
2015-09-20 18:34:33 +02:00
|
|
|
#![feature(core_private_bignum)]
|
|
|
|
#![feature(core_private_diy_float)]
|
2015-08-29 18:30:05 +02:00
|
|
|
#![feature(dec2flt)]
|
2016-05-27 18:16:27 +02:00
|
|
|
#![feature(decode_utf8)]
|
2015-08-29 18:30:05 +02:00
|
|
|
#![feature(fixed_size_array)]
|
2015-06-10 22:33:52 +02:00
|
|
|
#![feature(flt2dec)]
|
|
|
|
#![feature(libc)]
|
|
|
|
#![feature(nonzero)]
|
|
|
|
#![feature(rand)]
|
|
|
|
#![feature(raw)]
|
2016-06-21 23:27:15 +02:00
|
|
|
#![feature(sip_hash_13)]
|
2015-06-10 22:33:52 +02:00
|
|
|
#![feature(slice_patterns)]
|
|
|
|
#![feature(step_by)]
|
|
|
|
#![feature(test)]
|
2016-07-27 12:10:31 +02:00
|
|
|
#![feature(try_from)]
|
2015-06-10 22:33:52 +02:00
|
|
|
#![feature(unicode)]
|
|
|
|
#![feature(unique)]
|
2016-08-20 15:12:50 +02:00
|
|
|
#![feature(iter_max_by)]
|
|
|
|
#![feature(iter_min_by)]
|
2016-10-09 10:46:11 +02:00
|
|
|
#![feature(ordering_chaining)]
|
2016-10-21 23:29:42 +02:00
|
|
|
#![feature(result_unwrap_or_default)]
|
2014-06-28 22:57:36 +02: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 21:52:37 +02:00
|
|
|
extern crate rustc_unicode;
|
2015-04-19 07:19:54 +02:00
|
|
|
extern crate rand;
|
2014-06-28 22:57:36 +02:00
|
|
|
|
|
|
|
mod any;
|
2015-08-29 18:30:05 +02:00
|
|
|
mod array;
|
2014-08-05 00:42:36 +02:00
|
|
|
mod atomic;
|
2014-06-28 22:57:36 +02:00
|
|
|
mod cell;
|
|
|
|
mod char;
|
2015-10-15 21:07:20 +02:00
|
|
|
mod clone;
|
2014-06-28 22:57:36 +02:00
|
|
|
mod cmp;
|
|
|
|
mod fmt;
|
2014-12-13 03:43:07 +01:00
|
|
|
mod hash;
|
2015-10-15 21:07:20 +02:00
|
|
|
mod intrinsics;
|
2014-06-28 22:57:36 +02:00
|
|
|
mod iter;
|
|
|
|
mod mem;
|
2014-12-23 21:52:02 +01:00
|
|
|
mod nonzero;
|
2014-06-28 22:57:36 +02:00
|
|
|
mod num;
|
|
|
|
mod ops;
|
|
|
|
mod option;
|
|
|
|
mod ptr;
|
|
|
|
mod result;
|
2014-08-07 05:48:25 +02:00
|
|
|
mod slice;
|
2014-08-19 03:43:43 +02:00
|
|
|
mod str;
|
2014-06-28 22:57:36 +02:00
|
|
|
mod tuple;
|