]>
Commit | Line | Data |
---|---|---|
83c7162d XL |
1 | //! Some stuff used by rustc that doesn't have many dependencies |
2 | //! | |
3 | //! Originally extracted from rustc::back, which was nominally the | |
4 | //! compiler 'backend', though LLVM is rustc's backend, so rustc_target | |
5 | //! is really just odds-and-ends relating to code gen and linking. | |
6 | //! This crate mostly exists to make rustc smaller, so we might put | |
9fa01778 | 7 | //! more 'stuff' here in the future. It does not have a dependency on |
b7449926 | 8 | //! LLVM. |
83c7162d | 9 | |
9fa01778 | 10 | #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")] |
83c7162d XL |
11 | |
12 | #![feature(box_syntax)] | |
60c5eb7d | 13 | #![feature(bool_to_option)] |
0bf4aa26 | 14 | #![feature(nll)] |
83c7162d | 15 | #![feature(slice_patterns)] |
9fa01778 | 16 | |
83c7162d XL |
17 | #[macro_use] extern crate log; |
18 | ||
83c7162d XL |
19 | pub mod abi; |
20 | pub mod spec; | |
60c5eb7d XL |
21 | |
22 | /// Requirements for a `StableHashingContext` to be used in this crate. | |
23 | /// This is a hack to allow using the `HashStable_Generic` derive macro | |
24 | /// instead of implementing everything in librustc. | |
25 | pub trait HashStableContext {} |