1 //! Some stuff used by rustc that doesn't have many dependencies
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
10 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
11 #![feature(bool_to_option)]
13 #![feature(const_panic)]
15 #![feature(never_type)]
16 #![feature(associated_type_bounds)]
17 #![feature(exhaustive_patterns)]
18 #![feature(str_split_once)]
21 extern crate rustc_macros;
30 /// Requirements for a `StableHashingContext` to be used in this crate.
31 /// This is a hack to allow using the `HashStable_Generic` derive macro
32 /// instead of implementing everything in librustc_middle.
33 pub trait HashStableContext {}