]> git.lizzy.rs Git - rust.git/blob - src/librustc_infer/lib.rs
Rollup merge of #69158 - ecstatic-morse:graphviz-diff, r=matthewjasper
[rust.git] / src / librustc_infer / lib.rs
1 //! This crates defines the trait resolution method and the type inference engine.
2 //!
3 //! - **Traits.** Trait resolution is implemented in the `traits` module.
4 //! - **Type inference.** The type inference code can be found in the `infer` module;
5 //!   this code handles low-level equality and subtyping operations. The
6 //!   type check pass in the compiler is found in the `librustc_typeck` crate.
7 //!
8 //! For more information about how rustc works, see the [rustc guide].
9 //!
10 //! [rustc guide]: https://rust-lang.github.io/rustc-guide/
11 //!
12 //! # Note
13 //!
14 //! This API is completely unstable and subject to change.
15
16 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
17 #![feature(bool_to_option)]
18 #![feature(box_patterns)]
19 #![feature(box_syntax)]
20 #![feature(drain_filter)]
21 #![feature(never_type)]
22 #![feature(range_is_empty)]
23 #![feature(in_band_lifetimes)]
24 #![feature(crate_visibility_modifier)]
25 #![recursion_limit = "512"]
26
27 #[macro_use]
28 extern crate rustc_macros;
29 #[cfg(target_arch = "x86_64")]
30 #[macro_use]
31 extern crate rustc_data_structures;
32 #[macro_use]
33 extern crate log;
34 #[macro_use]
35 extern crate rustc;
36
37 pub mod infer;
38 pub mod traits;