2018-02-25 15:58:54 +00:00
|
|
|
//! 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-08-18 18:27:29 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2022-02-18 23:48:49 +00:00
|
|
|
#![feature(let_else)]
|
2018-03-03 05:22:19 +00:00
|
|
|
#![recursion_limit = "256"]
|
|
|
|
|
2018-02-25 15:58:54 +00:00
|
|
|
#[macro_use]
|
2020-08-14 06:05:01 +00:00
|
|
|
extern crate tracing;
|
2018-02-21 16:24:13 +00:00
|
|
|
#[macro_use]
|
2020-03-29 14:41:09 +00:00
|
|
|
extern crate rustc_middle;
|
2018-02-25 15:58:54 +00:00
|
|
|
|
2020-03-03 16:25:03 +00:00
|
|
|
mod chalk;
|
2018-02-21 15:55:16 +00:00
|
|
|
mod dropck_outlives;
|
2018-03-09 00:30:37 +00:00
|
|
|
mod evaluate_obligation;
|
2018-07-04 18:07:45 +00:00
|
|
|
mod implied_outlives_bounds;
|
2018-11-23 21:43:59 +00:00
|
|
|
mod normalize_erasing_regions;
|
|
|
|
mod normalize_projection_ty;
|
2018-06-27 10:53:23 +00:00
|
|
|
mod type_op;
|
2018-02-25 15:58:54 +00:00
|
|
|
|
2021-08-28 23:45:37 +00:00
|
|
|
pub use type_op::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};
|
2021-08-15 12:49:36 +00:00
|
|
|
|
2020-03-29 14:41:09 +00:00
|
|
|
use rustc_middle::ty::query::Providers;
|
2018-02-25 15:58:54 +00:00
|
|
|
|
2020-07-05 20:00:14 +00:00
|
|
|
pub fn provide(p: &mut Providers) {
|
2018-06-27 13:42:00 +00:00
|
|
|
dropck_outlives::provide(p);
|
|
|
|
evaluate_obligation::provide(p);
|
2018-07-04 18:07:45 +00:00
|
|
|
implied_outlives_bounds::provide(p);
|
2020-03-03 16:25:03 +00:00
|
|
|
chalk::provide(p);
|
2018-06-27 13:42:00 +00:00
|
|
|
normalize_projection_ty::provide(p);
|
|
|
|
normalize_erasing_regions::provide(p);
|
|
|
|
type_op::provide(p);
|
2018-02-25 15:58:54 +00:00
|
|
|
}
|