1 //! This crates 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 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
14 #![feature(bool_to_option)]
15 #![feature(box_patterns)]
16 #![feature(drain_filter)]
17 #![feature(derive_default_enum)]
18 #![feature(hash_drain_filter)]
19 #![feature(label_break_value)]
21 #![feature(never_type)]
22 #![feature(crate_visibility_modifier)]
23 #![feature(control_flow_enum)]
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;