]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_trait_selection/src/lib.rs
Auto merge of #106872 - dtolnay:nbsp, r=fee1-dead
[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 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
14 #![feature(associated_type_bounds)]
15 #![feature(box_patterns)]
16 #![feature(control_flow_enum)]
17 #![feature(drain_filter)]
18 #![feature(hash_drain_filter)]
19 #![feature(let_chains)]
20 #![feature(if_let_guard)]
21 #![feature(never_type)]
22 #![feature(result_option_inspect)]
23 #![feature(type_alias_impl_trait)]
24 #![recursion_limit = "512"] // For rustdoc
25
26 #[macro_use]
27 extern crate rustc_macros;
28 #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
29 #[macro_use]
30 extern crate rustc_data_structures;
31 #[macro_use]
32 extern crate tracing;
33 #[macro_use]
34 extern crate rustc_middle;
35 #[macro_use]
36 extern crate smallvec;
37
38 pub mod errors;
39 pub mod infer;
40 pub mod solve;
41 pub mod traits;