1 //! This crate defines the trait resolution method.
3 //! - **Traits.** Trait resolution is implemented in the `traits` module.
5 //! For more information about how rustc works, see the [rustc-dev-guide].
7 //! [rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org/
11 //! This API is completely unstable and subject to change.
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))]
21 #![feature(if_let_guard)]
22 #![feature(never_type)]
23 #![feature(type_alias_impl_trait)]
24 #![recursion_limit = "512"] // For rustdoc
27 extern crate rustc_macros;
28 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
30 extern crate rustc_data_structures;
34 extern crate rustc_middle;
36 extern crate smallvec;