]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_trait_selection/src/lib.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / compiler / rustc_trait_selection / src / lib.rs
1 //! This crates 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 #![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(in_band_lifetimes)]
18 #![feature(never_type)]
19 #![feature(crate_visibility_modifier)]
20 #![feature(or_patterns)]
21 #![feature(control_flow_enum)]
22 #![recursion_limit = "512"] // For rustdoc
23
24 #[macro_use]
25 extern crate rustc_macros;
26 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
27 #[macro_use]
28 extern crate rustc_data_structures;
29 #[macro_use]
30 extern crate tracing;
31 #[macro_use]
32 extern crate rustc_middle;
33
34 pub mod autoderef;
35 pub mod infer;
36 pub mod opaque_types;
37 pub mod traits;