1
Fork 0
rust/compiler/rustc_traits/src/lib.rs

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

33 lines
849 B
Rust
Raw Normal View History

//! New recursive solver modeled on Chalk's recursive solver. Most of
//! the guts are broken up into modules; see the comments in those modules.
2022-02-19 00:48:49 +01:00
#![feature(let_else)]
2018-03-03 06:22:19 +01:00
#![recursion_limit = "256"]
#[macro_use]
2020-08-13 23:05:01 -07:00
extern crate tracing;
#[macro_use]
2020-03-29 16:41:09 +02:00
extern crate rustc_middle;
2020-03-03 11:25:03 -05:00
mod chalk;
mod dropck_outlives;
mod evaluate_obligation;
mod implied_outlives_bounds;
mod normalize_erasing_regions;
mod normalize_projection_ty;
mod type_op;
pub use type_op::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};
2020-03-29 16:41:09 +02:00
use rustc_middle::ty::query::Providers;
pub fn provide(p: &mut Providers) {
2018-06-27 09:42:00 -04:00
dropck_outlives::provide(p);
evaluate_obligation::provide(p);
implied_outlives_bounds::provide(p);
2020-03-03 11:25:03 -05:00
chalk::provide(p);
2018-06-27 09:42:00 -04:00
normalize_projection_ty::provide(p);
normalize_erasing_regions::provide(p);
type_op::provide(p);
}