2015-04-07 06:10:53 -04:00
|
|
|
// Copyright 2015 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.
|
|
|
|
|
|
|
|
//! Various data structures used by the Rust compiler. The intention
|
|
|
|
//! is that code in here should be not be *specific* to rustc, so that
|
|
|
|
//! it can be easily unit tested and so forth.
|
|
|
|
//!
|
|
|
|
//! # Note
|
|
|
|
//!
|
|
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
|
|
|
|
#![crate_name = "rustc_data_structures"]
|
2015-08-13 10:21:36 -07:00
|
|
|
#![unstable(feature = "rustc_private", issue = "27812")]
|
2015-04-07 06:10:53 -04:00
|
|
|
#![crate_type = "dylib"]
|
|
|
|
#![crate_type = "rlib"]
|
2015-08-09 14:15:05 -07:00
|
|
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
|
|
|
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
|
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/")]
|
2016-01-21 15:26:19 -08:00
|
|
|
#![cfg_attr(not(stage0), deny(warnings))]
|
2015-04-07 06:10:53 -04:00
|
|
|
|
2015-11-18 14:44:24 -05:00
|
|
|
#![feature(nonzero)]
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![feature(staged_api)]
|
2016-05-08 00:52:45 +03:00
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
#![feature(fn_traits)]
|
2015-08-18 17:56:55 -04:00
|
|
|
|
2015-04-08 18:53:56 -04:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2015-04-07 06:10:53 -04:00
|
|
|
|
2015-11-18 14:44:24 -05:00
|
|
|
extern crate core;
|
2016-03-05 08:40:33 -05:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2015-04-07 06:10:53 -04:00
|
|
|
extern crate serialize as rustc_serialize; // used by deriving
|
2015-04-07 06:11:49 -04:00
|
|
|
|
2015-04-07 06:12:13 -04:00
|
|
|
pub mod bitvec;
|
2015-08-18 17:37:15 -04:00
|
|
|
pub mod graph;
|
2015-07-20 15:48:24 +03:00
|
|
|
pub mod ivar;
|
2015-11-18 14:44:24 -05:00
|
|
|
pub mod obligation_forest;
|
2016-05-21 08:18:09 -04:00
|
|
|
pub mod snapshot_map;
|
2015-08-18 17:37:15 -04:00
|
|
|
pub mod snapshot_vec;
|
2015-08-18 17:38:19 -04:00
|
|
|
pub mod transitive_relation;
|
2015-04-07 06:12:21 -04:00
|
|
|
pub mod unify;
|
2015-08-18 17:56:55 -04:00
|
|
|
pub mod fnv;
|
2015-12-10 14:35:53 -05:00
|
|
|
pub mod tuple_slice;
|
2016-01-05 13:02:57 -05:00
|
|
|
pub mod veccell;
|
2015-08-11 11:48:43 -07:00
|
|
|
|
|
|
|
// See comments in src/librustc/lib.rs
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub fn __noop_fix_for_27438() {}
|