]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_ty_utils/src/lib.rs
New upstream version 1.69.0+dfsg1
[rustc.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(let_chains)]
9 #![feature(never_type)]
10 #![feature(box_patterns)]
11 #![recursion_limit = "256"]
12
13 #[macro_use]
14 extern crate rustc_middle;
15 #[macro_use]
16 extern crate tracing;
17
18 use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
19 use rustc_macros::fluent_messages;
20 use rustc_middle::ty::query::Providers;
21
22 mod abi;
23 mod assoc;
24 mod common_traits;
25 mod consts;
26 mod errors;
27 mod implied_bounds;
28 pub mod instance;
29 mod layout;
30 mod layout_sanity_check;
31 mod needs_drop;
32 pub mod representability;
33 mod structural_match;
34 mod ty;
35
36 fluent_messages! { "../locales/en-US.ftl" }
37
38 pub fn provide(providers: &mut Providers) {
39 abi::provide(providers);
40 assoc::provide(providers);
41 common_traits::provide(providers);
42 consts::provide(providers);
43 implied_bounds::provide(providers);
44 layout::provide(providers);
45 needs_drop::provide(providers);
46 representability::provide(providers);
47 ty::provide(providers);
48 instance::provide(providers);
49 structural_match::provide(providers);
50 }