]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_ty_utils/src/lib.rs
Rollup merge of #80918 - yoshuawuyts:int-log2, r=m-ou-se
[rust.git] / compiler / rustc_ty_utils / src / lib.rs
1 //! Various checks
2 //!
3 //! # Note
4 //!
5 //! This API is completely unstable and subject to change.
6
7 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
8 #![feature(control_flow_enum)]
9 #![feature(half_open_range_patterns)]
10 #![feature(exclusive_range_pattern)]
11 #![feature(nll)]
12 #![recursion_limit = "256"]
13
14 #[macro_use]
15 extern crate rustc_middle;
16 #[macro_use]
17 extern crate tracing;
18
19 use rustc_middle::ty::query::Providers;
20
21 mod common_traits;
22 pub mod instance;
23 mod needs_drop;
24 pub mod representability;
25 mod ty;
26
27 pub fn provide(providers: &mut Providers) {
28     common_traits::provide(providers);
29     needs_drop::provide(providers);
30     ty::provide(providers);
31     instance::provide(providers);
32 }