1 //! This crates defines the type inference engine.
3 //! - **Type inference.** The type inference code can be found in the `infer` module;
4 //! this code handles low-level equality and subtyping operations. The
5 //! type check pass in the compiler is found in the `librustc_typeck` crate.
7 //! For more information about how rustc works, see the [rustc dev guide].
9 //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/
13 //! This API is completely unstable and subject to change.
15 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
16 #![feature(bindings_after_at)]
17 #![feature(bool_to_option)]
18 #![feature(box_patterns)]
19 #![feature(box_syntax)]
21 #![feature(const_panic)]
22 #![feature(extend_one)]
23 #![feature(never_type)]
24 #![feature(or_patterns)]
25 #![feature(range_is_empty)]
26 #![feature(in_band_lifetimes)]
27 #![feature(crate_visibility_modifier)]
28 #![recursion_limit = "512"] // For rustdoc
31 extern crate rustc_macros;
32 #[cfg(target_arch = "x86_64")]
34 extern crate rustc_data_structures;
38 extern crate rustc_middle;