]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_infer/src/lib.rs
Rollup merge of #107553 - edward-shen:edward-shen/suggest-null-ptr, r=WaffleLapkin
[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_hir_analysis` 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(box_patterns)]
17 #![feature(control_flow_enum)]
18 #![feature(extend_one)]
19 #![feature(let_chains)]
20 #![feature(if_let_guard)]
21 #![feature(min_specialization)]
22 #![feature(never_type)]
23 #![feature(try_blocks)]
24 #![recursion_limit = "512"] // For rustdoc
25
26 #[macro_use]
27 extern crate rustc_macros;
28 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
29 #[macro_use]
30 extern crate rustc_data_structures;
31 #[macro_use]
32 extern crate tracing;
33 #[macro_use]
34 extern crate rustc_middle;
35
36 mod errors;
37 pub mod infer;
38 pub mod traits;