]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_trait_selection/src/lib.rs
remove the `Subst` trait, always use `EarlyBinder`
[rust.git] / compiler / rustc_trait_selection / src / lib.rs
1 //! This crate defines the trait resolution method.
2 //!
3 //! - **Traits.** Trait resolution is implemented in the `traits` module.
4 //!
5 //! For more information about how rustc works, see the [rustc-dev-guide].
6 //!
7 //! [rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org/
8 //!
9 //! # Note
10 //!
11 //! This API is completely unstable and subject to change.
12
13 #![allow(rustc::potential_query_instability)]
14 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
15 #![feature(box_patterns)]
16 #![feature(control_flow_enum)]
17 #![feature(drain_filter)]
18 #![feature(hash_drain_filter)]
19 #![cfg_attr(bootstrap, feature(label_break_value))]
20 #![feature(let_chains)]
21 #![cfg_attr(bootstrap, feature(let_else))]
22 #![feature(if_let_guard)]
23 #![feature(never_type)]
24 #![feature(type_alias_impl_trait)]
25 #![recursion_limit = "512"] // For rustdoc
26
27 #[macro_use]
28 extern crate rustc_macros;
29 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
30 #[macro_use]
31 extern crate rustc_data_structures;
32 #[macro_use]
33 extern crate tracing;
34 #[macro_use]
35 extern crate rustc_middle;
36 #[macro_use]
37 extern crate smallvec;
38
39 pub mod autoderef;
40 pub mod errors;
41 pub mod infer;
42 pub mod traits;