]> git.lizzy.rs Git - rust.git/blob - src/librustc_metadata/lib.rs
Auto merge of #52046 - cramertj:fix-generator-mir, r=eddyb
[rust.git] / src / librustc_metadata / 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 #![deny(bare_trait_objects)]
12
13 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
14        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
15        html_root_url = "https://doc.rust-lang.org/nightly/")]
16
17 #![feature(box_patterns)]
18 #![feature(fs_read_write)]
19 #![feature(libc)]
20 #![feature(macro_at_most_once_rep)]
21 #![feature(proc_macro_internals)]
22 #![feature(quote)]
23 #![feature(rustc_diagnostic_macros)]
24 #![feature(slice_sort_by_cached_key)]
25 #![feature(specialization)]
26 #![feature(rustc_private)]
27
28 #![recursion_limit="256"]
29
30 extern crate libc;
31 #[macro_use]
32 extern crate log;
33 #[macro_use]
34 extern crate syntax;
35 extern crate syntax_pos;
36 extern crate flate2;
37 extern crate serialize as rustc_serialize; // used by deriving
38 extern crate rustc_errors as errors;
39 extern crate syntax_ext;
40 extern crate proc_macro;
41
42 #[macro_use]
43 extern crate rustc;
44 extern crate rustc_target;
45 #[macro_use]
46 extern crate rustc_data_structures;
47
48 mod diagnostics;
49
50 mod index_builder;
51 mod index;
52 mod encoder;
53 mod decoder;
54 mod cstore_impl;
55 mod isolated_encoder;
56 mod schema;
57 mod native_libs;
58 mod link_args;
59 mod foreign_modules;
60
61 pub mod creader;
62 pub mod cstore;
63 pub mod dynamic_lib;
64 pub mod locator;
65
66 __build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }