2020-01-13 13:40:30 +01:00
|
|
|
//! Various checks
|
|
|
|
//!
|
|
|
|
//! # Note
|
|
|
|
//!
|
|
|
|
//! This API is completely unstable and subject to change.
|
|
|
|
|
|
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
|
|
|
|
#![feature(bool_to_option)]
|
|
|
|
#![feature(nll)]
|
|
|
|
#![recursion_limit = "256"]
|
|
|
|
|
|
|
|
#[macro_use]
|
2020-03-29 16:41:09 +02:00
|
|
|
extern crate rustc_middle;
|
2020-01-13 13:40:30 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
|
2020-03-29 16:41:09 +02:00
|
|
|
use rustc_middle::ty::query::Providers;
|
2020-01-13 13:40:30 +01:00
|
|
|
|
2020-01-30 20:28:16 +00:00
|
|
|
mod common_traits;
|
2020-02-12 17:24:32 +01:00
|
|
|
pub mod instance;
|
2020-01-30 20:28:16 +00:00
|
|
|
mod needs_drop;
|
2020-01-13 13:40:30 +01:00
|
|
|
mod ty;
|
|
|
|
|
|
|
|
pub fn provide(providers: &mut Providers<'_>) {
|
2020-01-30 20:28:16 +00:00
|
|
|
common_traits::provide(providers);
|
|
|
|
needs_drop::provide(providers);
|
2020-01-13 13:40:30 +01:00
|
|
|
ty::provide(providers);
|
|
|
|
}
|