]> git.lizzy.rs Git - rust.git/blob - src/librustc_data_structures/lib.rs
Rollup merge of #41087 - estebank:tuple-float-index, r=arielb1
[rust.git] / src / librustc_data_structures / lib.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Various data structures used by the Rust compiler. The intention
12 //! is that code in here should be not be *specific* to rustc, so that
13 //! it can be easily unit tested and so forth.
14 //!
15 //! # Note
16 //!
17 //! This API is completely unstable and subject to change.
18
19 #![crate_name = "rustc_data_structures"]
20 #![unstable(feature = "rustc_private", issue = "27812")]
21 #![crate_type = "dylib"]
22 #![crate_type = "rlib"]
23 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
24       html_favicon_url = "https://www.rust-lang.org/favicon.ico",
25       html_root_url = "https://doc.rust-lang.org/nightly/")]
26 #![deny(warnings)]
27
28 #![feature(shared)]
29 #![feature(collections_range)]
30 #![feature(nonzero)]
31 #![feature(rustc_private)]
32 #![feature(staged_api)]
33 #![feature(unboxed_closures)]
34 #![feature(fn_traits)]
35 #![feature(untagged_unions)]
36 #![feature(associated_consts)]
37 #![feature(unsize)]
38 #![feature(i128_type)]
39 #![feature(conservative_impl_trait)]
40 #![feature(discriminant_value)]
41 #![feature(specialization)]
42 #![feature(manually_drop)]
43
44 #![cfg_attr(unix, feature(libc))]
45 #![cfg_attr(test, feature(test))]
46
47 extern crate core;
48 #[macro_use]
49 extern crate log;
50 extern crate serialize as rustc_serialize; // used by deriving
51 #[cfg(unix)]
52 extern crate libc;
53
54 pub use rustc_serialize::hex::ToHex;
55
56 pub mod array_vec;
57 pub mod accumulate_vec;
58 pub mod small_vec;
59 pub mod base_n;
60 pub mod bitslice;
61 pub mod blake2b;
62 pub mod bitvec;
63 pub mod fmt_wrap;
64 pub mod graph;
65 pub mod ivar;
66 pub mod indexed_set;
67 pub mod indexed_vec;
68 pub mod obligation_forest;
69 pub mod snapshot_map;
70 pub mod snapshot_vec;
71 pub mod stable_hasher;
72 pub mod transitive_relation;
73 pub mod unify;
74 pub mod fnv;
75 pub mod fx;
76 pub mod tuple_slice;
77 pub mod veccell;
78 pub mod control_flow_graph;
79 pub mod flock;
80
81 // See comments in src/librustc/lib.rs
82 #[doc(hidden)]
83 pub fn __noop_fix_for_27438() {}