]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
Auto merge of #71292 - marmeladema:queries-local-def-id, r=eddyb
[rust.git] / src / librustc_target / lib.rs
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
7 //! more 'stuff' here in the future. It does not have a dependency on
8 //! LLVM.
9
10 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
11 #![feature(bool_to_option)]
12 #![feature(const_if_match)]
13 #![feature(const_fn)]
14 #![feature(const_panic)]
15 #![feature(nll)]
16 #![feature(never_type)]
17 #![feature(associated_type_bounds)]
18 #![feature(exhaustive_patterns)]
19
20 #[macro_use]
21 extern crate log;
22
23 pub mod abi;
24 pub mod spec;
25
26 /// Requirements for a `StableHashingContext` to be used in this crate.
27 /// This is a hack to allow using the `HashStable_Generic` derive macro
28 /// instead of implementing everything in librustc_middle.
29 pub trait HashStableContext {}