mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-20 05:13:12 +00:00
85 lines
2.3 KiB
Rust
85 lines
2.3 KiB
Rust
// 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"]
|
|
#![crate_type = "dylib"]
|
|
#![crate_type = "rlib"]
|
|
#![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/")]
|
|
#![deny(warnings)]
|
|
|
|
#![feature(shared)]
|
|
#![feature(collections_range)]
|
|
#![feature(nonzero)]
|
|
#![feature(unboxed_closures)]
|
|
#![feature(fn_traits)]
|
|
#![feature(associated_consts)]
|
|
#![feature(unsize)]
|
|
#![feature(i128_type)]
|
|
#![feature(conservative_impl_trait)]
|
|
#![feature(discriminant_value)]
|
|
#![feature(specialization)]
|
|
#![feature(manually_drop)]
|
|
#![feature(struct_field_attributes)]
|
|
|
|
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
#![cfg_attr(stage0, feature(rustc_private))]
|
|
#![cfg_attr(stage0, feature(staged_api))]
|
|
|
|
#![cfg_attr(unix, feature(libc))]
|
|
#![cfg_attr(test, feature(test))]
|
|
|
|
extern crate core;
|
|
#[macro_use]
|
|
extern crate log;
|
|
extern crate serialize as rustc_serialize; // used by deriving
|
|
#[cfg(unix)]
|
|
extern crate libc;
|
|
|
|
pub use rustc_serialize::hex::ToHex;
|
|
|
|
pub mod array_vec;
|
|
pub mod accumulate_vec;
|
|
pub mod small_vec;
|
|
pub mod base_n;
|
|
pub mod bitslice;
|
|
pub mod blake2b;
|
|
pub mod bitvec;
|
|
pub mod fmt_wrap;
|
|
pub mod graph;
|
|
pub mod ivar;
|
|
pub mod indexed_set;
|
|
pub mod indexed_vec;
|
|
pub mod obligation_forest;
|
|
pub mod snapshot_map;
|
|
pub mod snapshot_vec;
|
|
pub mod stable_hasher;
|
|
pub mod transitive_relation;
|
|
pub mod unify;
|
|
pub mod fnv;
|
|
pub mod fx;
|
|
pub mod tuple_slice;
|
|
pub mod veccell;
|
|
pub mod control_flow_graph;
|
|
pub mod flock;
|
|
|
|
// See comments in src/librustc/lib.rs
|
|
#[doc(hidden)]
|
|
pub fn __noop_fix_for_27438() {}
|