Files
rust/compiler/rustc_ty_utils/src/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Rust
Raw Normal View History

2020-01-13 13:40:30 +01:00
//! Various checks
//!
//! # Note
//!
//! This API is completely unstable and subject to change.
2020-09-23 21:51:56 +02:00
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2023-11-13 07:39:17 -05:00
#![doc(rust_logo)]
#![feature(rustdoc_internals)]
#![allow(internal_features)]
#![feature(assert_matches)]
#![feature(associated_type_defaults)]
2023-11-16 18:33:36 +11:00
#![feature(box_patterns)]
#![feature(if_let_guard)]
#![feature(iterator_try_collect)]
2022-09-30 18:53:32 +01:00
#![feature(let_chains)]
#![feature(never_type)]
2020-01-13 13:40:30 +01:00
use rustc_middle::query::Providers;
2020-01-13 13:40:30 +01:00
mod abi;
mod assoc;
mod common_traits;
2022-06-28 22:45:05 +02:00
mod consts;
mod errors;
mod implied_bounds;
2023-11-16 17:08:27 +11:00
mod instance;
mod layout;
mod layout_sanity_check;
mod needs_drop;
2023-04-18 16:09:48 +02:00
mod opaque_types;
2023-11-16 17:08:27 +11:00
mod representability;
pub mod sig_types;
mod structural_match;
2020-01-13 13:40:30 +01:00
mod ty;
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
pub fn provide(providers: &mut Providers) {
abi::provide(providers);
assoc::provide(providers);
common_traits::provide(providers);
consts::provide(providers);
implied_bounds::provide(providers);
layout::provide(providers);
needs_drop::provide(providers);
2023-04-18 16:09:48 +02:00
opaque_types::provide(providers);
2022-08-15 14:11:11 -05:00
representability::provide(providers);
2020-01-13 13:40:30 +01:00
ty::provide(providers);
2020-04-05 01:21:36 -04:00
instance::provide(providers);
structural_match::provide(providers);
2020-01-13 13:40:30 +01:00
}