]> git.lizzy.rs Git - rust.git/blob - src/librustc_data_structures/lib.rs
1d53825ac37f9155e5567dc4a302864a7c13b3ea
[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 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20       html_favicon_url = "https://www.rust-lang.org/favicon.ico",
21       html_root_url = "https://doc.rust-lang.org/nightly/")]
22 #![deny(warnings)]
23
24 #![feature(collections_range)]
25 #![feature(nonnull)]
26 #![feature(nonzero)]
27 #![feature(unboxed_closures)]
28 #![feature(fn_traits)]
29 #![feature(unsize)]
30 #![feature(i128_type)]
31 #![feature(i128)]
32 #![feature(conservative_impl_trait)]
33 #![feature(specialization)]
34 #![feature(optin_builtin_traits)]
35 #![feature(underscore_lifetimes)]
36 #![feature(macro_vis_matcher)]
37 #![feature(allow_internal_unstable)]
38
39 #![cfg_attr(unix, feature(libc))]
40 #![cfg_attr(test, feature(test))]
41
42 extern crate core;
43 #[macro_use]
44 extern crate log;
45 extern crate serialize as rustc_serialize; // used by deriving
46 #[cfg(unix)]
47 extern crate libc;
48 extern crate parking_lot;
49 #[macro_use]
50 extern crate cfg_if;
51 extern crate stable_deref_trait;
52
53 pub use rustc_serialize::hex::ToHex;
54
55 pub mod array_vec;
56 pub mod accumulate_vec;
57 pub mod small_vec;
58 pub mod base_n;
59 pub mod bitslice;
60 pub mod bitvec;
61 pub mod blake2b;
62 pub mod graph;
63 pub mod indexed_set;
64 pub mod indexed_vec;
65 pub mod obligation_forest;
66 pub mod sip128;
67 pub mod snapshot_map;
68 pub mod snapshot_vec;
69 pub mod stable_hasher;
70 pub mod transitive_relation;
71 pub mod unify;
72 pub mod fx;
73 pub mod tuple_slice;
74 pub mod veccell;
75 pub mod control_flow_graph;
76 pub mod flock;
77 pub mod sync;
78 pub mod owning_ref;
79
80 // See comments in src/librustc/lib.rs
81 #[doc(hidden)]
82 pub fn __noop_fix_for_27438() {}