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.
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.
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.
17 //! This API is completely unstable and subject to change.
19 #![crate_name = "rustc_data_structures"]
20 #![crate_type = "dylib"]
21 #![crate_type = "rlib"]
22 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
23 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
24 html_root_url = "https://doc.rust-lang.org/nightly/")]
28 #![feature(collections_range)]
30 #![feature(unboxed_closures)]
31 #![feature(fn_traits)]
32 #![feature(untagged_unions)]
33 #![feature(associated_consts)]
35 #![feature(i128_type)]
36 #![feature(conservative_impl_trait)]
37 #![feature(discriminant_value)]
38 #![feature(specialization)]
39 #![feature(manually_drop)]
40 #![feature(struct_field_attributes)]
42 #![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
43 #![cfg_attr(stage0, feature(rustc_private))]
44 #![cfg_attr(stage0, feature(staged_api))]
46 #![cfg_attr(unix, feature(libc))]
47 #![cfg_attr(test, feature(test))]
52 extern crate serialize as rustc_serialize; // used by deriving
56 pub use rustc_serialize::hex::ToHex;
59 pub mod accumulate_vec;
70 pub mod obligation_forest;
73 pub mod stable_hasher;
74 pub mod transitive_relation;
80 pub mod control_flow_graph;
83 // See comments in src/librustc/lib.rs
85 pub fn __noop_fix_for_27438() {}