]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_infer/src/lib.rs
Avoid storing the ImplPolarity and Constness next to a TraitRef and use TraitPredicat...
[rust.git] / compiler / rustc_infer / src / lib.rs
1 //! This crates defines the type inference engine.
2 //!
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.
6 //!
7 //! For more information about how rustc works, see the [rustc dev guide].
8 //!
9 //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/
10 //!
11 //! # Note
12 //!
13 //! This API is completely unstable and subject to change.
14
15 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
16 #![feature(bool_to_option)]
17 #![feature(box_patterns)]
18 #![feature(derive_default_enum)]
19 #![feature(extend_one)]
20 #![feature(iter_zip)]
21 #![feature(let_else)]
22 #![feature(never_type)]
23 #![feature(in_band_lifetimes)]
24 #![feature(control_flow_enum)]
25 #![feature(min_specialization)]
26 #![feature(label_break_value)]
27 #![feature(unwrap_infallible)]
28 #![recursion_limit = "512"] // For rustdoc
29
30 #[macro_use]
31 extern crate rustc_macros;
32 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
33 #[macro_use]
34 extern crate rustc_data_structures;
35 #[macro_use]
36 extern crate tracing;
37 #[macro_use]
38 extern crate rustc_middle;
39
40 pub mod infer;
41 pub mod traits;