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 `rustc_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 #![allow(rustc::potential_query_instability)]
16 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
17 #![feature(box_patterns)]
18 #![feature(control_flow_enum)]
19 #![feature(extend_one)]
20 #![feature(label_break_value)]
21 #![feature(let_chains)]
23 #![feature(min_specialization)]
24 #![feature(never_type)]
25 #![feature(try_blocks)]
26 #![recursion_limit = "512"] // For rustdoc
29 extern crate rustc_macros;
30 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
32 extern crate rustc_data_structures;
36 extern crate rustc_middle;